forked from dead-claudia/thallium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thallium.d.ts
48 lines (41 loc) · 1.37 KB
/
thallium.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
export {
Location, ReportType, Report, HookStage, HookError,
StartReport, EnterReport, LeaveReport, PassReport, FailReport,
SkipReport, EndReport, ErrorReport, HookReport,
BeforeAllReport, BeforeEachReport, AfterEachReport, AfterAllReport,
Reporter, ArgReporter, VoidReporter, ReporterConsumer,
Plugin, ArgPlugin, VoidPlugin,
Callback, Reflect, ReflectRoot, ReflectChild,
Test, default as t,
} from "./index";
import * as assert from "./assert";
import * as match from "./match";
import * as r from "./r";
export {assert, match, r};
export {root, reports, hookErrors, location} from "./internal";
export namespace settings {
export interface Setting<T> {
get(): T;
set(value: T): void;
}
export interface SymbolsEnum {
Pass: string;
Fail: string;
Dot: string;
DotFail: string;
}
export interface DefaultOptions {
print(line: string): any | Promise<any>;
write(line: string): any | Promise<any>;
reset(): any | Promise<any>;
}
export interface ColorSupport {
supported: boolean;
forced: boolean;
}
export const windowWidth: Setting<number>;
export const newline: Setting<string>;
export const symbols: Setting<SymbolsEnum>;
export const defaultOpts: Setting<DefaultOptions>;
export const colorSupport: Setting<ColorSupport>;
}