mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Adding TypeScript typings form Debessmann monitoring system.
This commit is contained in:
0
types/debessmann/debessmann-tests.ts
Normal file
0
types/debessmann/debessmann-tests.ts
Normal file
29
types/debessmann/index.d.ts
vendored
Normal file
29
types/debessmann/index.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// Type definitions for debessmann 0.1
|
||||
// Project: https://github.com/fs535/debessmann#readme
|
||||
// Definitions by: Vladislavs Korehovs <https://github.com/vkorehov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export class EventId {
|
||||
time: Date;
|
||||
seq: number;
|
||||
}
|
||||
|
||||
export class Event {
|
||||
_id: EventId;
|
||||
id: string;
|
||||
timestamp: string;
|
||||
payload: any;
|
||||
headers: { [key:string]:string; };
|
||||
metrics: { [key:string]:number };
|
||||
}
|
||||
|
||||
export class DM {
|
||||
init(endpoint:string, authkey:string): void ;
|
||||
send(data:Event): void ;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
dm: DM;
|
||||
}
|
||||
}
|
||||
22
types/debessmann/tsconfig.json
Normal file
22
types/debessmann/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"debessmann-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/debessmann/tslint.json
Normal file
1
types/debessmann/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user