-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
61 lines (49 loc) · 1.13 KB
/
index.d.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
type ThunkResult = Promise<any> | void;
interface Rescuer {
(reason: any): void;
}
interface DoneCallback {
(reason?: any): void;
}
interface Thunk {
(done?: DoneCallback): ThunkResult;
}
interface TableThunk {
(row: any): ThunkResult;
}
interface DslHook {
(hook: Thunk): void;
}
interface DslSuite {
(description: string, closure: Thunk): Suite;
}
interface DslTableSuite {
(description: string, table: any[], closure: TableThunk): Suite;
}
interface Spec {
timeout(ms: number): Spec;
info(info: any): Spec;
}
interface Suite {
info(info: any): Suite;
}
interface DslSpec {
(description: string, closure?: Thunk): Spec;
}
interface DslInfo {
(content: any): void;
}
declare var beforeAll: DslHook;
declare var beforeEach: DslHook;
declare var afterAll: DslHook;
declare var afterEach: DslHook;
declare var describe: DslSuite;
declare var xdescribe: DslSuite;
declare var fdescribe: DslSuite;
declare var describeEach: DslTableSuite;
declare var xdescribeEach: DslTableSuite;
declare var fdescribeEach: DslTableSuite;
declare var it: DslSpec;
declare var xit: DslSpec;
declare var fit: DslSpec;
declare var info: DslInfo;