Update index.d.ts

fixed backward compatibility
This commit is contained in:
Nicolas Penin
2019-01-27 11:44:16 +01:00
committed by GitHub
parent ca16f6f844
commit 0d2ae95d00
+4
View File
@@ -25,10 +25,14 @@ declare namespace debug {
formatters: Formatters;
}
type IDebug=Debug;
interface Formatters {
[formatter: string]: (v: any) => string;
}
type IDebugger=Debugger;
interface Debugger {
(formatter: any, ...args: any[]): void;