forked from ionic-team/ionic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleek.d.ts
More file actions
43 lines (42 loc) · 1.02 KB
/
leek.d.ts
File metadata and controls
43 lines (42 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
declare module 'leek' {
namespace Leek {
interface LeekOptions {
name: string;
trackingCode: string;
globalName: string;
version: string;
adapterUrls?: string[];
adapterServers?: string[];
silent?: boolean;
}
interface TrackOptions {
name: string;
message: string;
}
interface TrackErrorOptions {
description: string;
isFatal: boolean;
}
interface TrackTimingOptions {
category: string;
variable: string;
value: string;
label: string;
}
interface TrackEventOptions {
name: string;
category: string;
label: string;
value: string;
}
}
class Leek {
constructor(options: Leek.LeekOptions);
setName(value: string): void;
track(meta: Leek.TrackOptions): Promise<void>;
trackError(meta: Leek.TrackErrorOptions): Promise<void>;
trackTiming(meta: Leek.TrackTimingOptions): Promise<void>
trackEvent(meta: Leek.TrackEventOptions): Promise<void>;
}
export = Leek;
}