mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Update debug.d.ts
This commit is contained in:
26
debug/debug.d.ts
vendored
26
debug/debug.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Seon-Wook Park <https://github.com/swook>, Gal Talmor <https://github.com/galtalmor>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare var debug:debug.IDebug;
|
||||
declare var debug: debug.IDebug;
|
||||
|
||||
// Support AMD require
|
||||
declare module 'debug' {
|
||||
@@ -12,27 +12,27 @@ declare module 'debug' {
|
||||
|
||||
declare module debug {
|
||||
export interface IDebug {
|
||||
(namespace: string):debug.IDebugger,
|
||||
coerce:(val:any)=>any,
|
||||
disable:()=>void,
|
||||
enable:(namespaces:string)=>void,
|
||||
enabled:(namespaces:string)=>boolean,
|
||||
(namespace: string): debug.IDebugger,
|
||||
coerce: (val: any) => any,
|
||||
disable: () => void,
|
||||
enable: (namespaces: string) => void,
|
||||
enabled: (namespaces: string) => boolean,
|
||||
|
||||
names:string[],
|
||||
skips:string[],
|
||||
names: string[],
|
||||
skips: string[],
|
||||
|
||||
formatters:IFormatters
|
||||
formatters: IFormatters
|
||||
}
|
||||
|
||||
export interface IFormatters {
|
||||
[formatter:string]: Function
|
||||
[formatter: string]: Function
|
||||
}
|
||||
|
||||
export interface IDebugger {
|
||||
(formatter: any, ...args: any[]): void;
|
||||
|
||||
enabled:boolean;
|
||||
log:Function;
|
||||
namespace:string;
|
||||
enabled: boolean;
|
||||
log: Function;
|
||||
namespace: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user