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