mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fixed types of debug.names and debug.skips arrays. (#18560)
This commit is contained in:
@@ -12,6 +12,7 @@ log("Formatted test (%d arg)", 1);
|
||||
log("Formatted %s (%d args)", "test", 2);
|
||||
|
||||
log("Enabled?: %s", debug.enabled("DefinitelyTyped:log"));
|
||||
log("Name Enabled: %s", debug.names.some(name => name.test("DefinitelyTyped:log")));
|
||||
log("Namespace: %s", log.namespace);
|
||||
|
||||
var error:debug.IDebugger = debug("DefinitelyTyped:error");
|
||||
|
||||
Vendored
+5
-3
@@ -1,6 +1,8 @@
|
||||
// Type definitions for debug
|
||||
// Project: https://github.com/visionmedia/debug
|
||||
// Definitions by: Seon-Wook Park <https://github.com/swook>, Gal Talmor <https://github.com/galtalmor>
|
||||
// Definitions by: Seon-Wook Park <https://github.com/swook>
|
||||
// Gal Talmor <https://github.com/galtalmor>
|
||||
// John McLaughlin <https://github.com/zamb3zi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare var debug: debug.IDebug;
|
||||
@@ -16,8 +18,8 @@ declare namespace debug {
|
||||
enable: (namespaces: string) => void,
|
||||
enabled: (namespaces: string) => boolean,
|
||||
|
||||
names: string[],
|
||||
skips: string[],
|
||||
names: RegExp[],
|
||||
skips: RegExp[],
|
||||
|
||||
formatters: IFormatters
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user