1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | declare var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug };
|
13 |
|
14 | export = debug;
|
15 | export as namespace debug;
|
16 |
|
17 | declare namespace debug {
|
18 | interface Debug {
|
19 | (namespace: string): Debugger;
|
20 | coerce: (val: any) => any;
|
21 | disable: () => string;
|
22 | enable: (namespaces: string) => void;
|
23 | enabled: (namespaces: string) => boolean;
|
24 | formatArgs: (this: Debugger, args: any[]) => void;
|
25 | log: (...args: any[]) => any;
|
26 | selectColor: (namespace: string) => string | number;
|
27 | humanize: typeof import('ms');
|
28 |
|
29 | names: RegExp[];
|
30 | skips: RegExp[];
|
31 |
|
32 | formatters: Formatters;
|
33 | }
|
34 |
|
35 | type IDebug = Debug;
|
36 |
|
37 | interface Formatters {
|
38 | [formatter: string]: (v: any) => string;
|
39 | }
|
40 |
|
41 | type IDebugger = Debugger;
|
42 |
|
43 | interface Debugger {
|
44 | (formatter: any, ...args: any[]): void;
|
45 |
|
46 | color: string;
|
47 | diff: number;
|
48 | enabled: boolean;
|
49 | log: (...args: any[]) => any;
|
50 | namespace: string;
|
51 | destroy: () => boolean;
|
52 | extend: (namespace: string, delimiter?: string) => Debugger;
|
53 | }
|
54 | }
|