Update index.d.ts

This commit is contained in:
Nicolas Penin
2019-01-27 11:38:11 +01:00
committed by GitHub
parent 2943797f76
commit ca16f6f844
+4 -4
View File
@@ -14,7 +14,7 @@ export as namespace debug;
declare namespace debug {
interface Debug {
(namespace: string): debug.Debugger;
(namespace: string): Debugger;
coerce: (val: any) => any;
disable: () => void;
enable: (namespaces: string) => void;
@@ -27,15 +27,15 @@ declare namespace debug {
}
interface Formatters {
[formatter: string]: (v:Object)=>string;
[formatter: string]: (v: any) => string;
}
interface Debugger {
(formatter: any, ...args: any[]): void;
enabled: boolean;
log: Function;
log: (v: any) => string;
namespace: string;
extend: (namespace: string, delimiter?: string) => debug.Debugger;
extend: (namespace: string, delimiter?: string) => Debugger;
}
}