mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-15 20:27:07 +00:00
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
37 lines
930 B
TypeScript
37 lines
930 B
TypeScript
// 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: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare var debug: debug.IDebug;
|
|
|
|
export = debug;
|
|
export as namespace debug;
|
|
|
|
declare namespace debug {
|
|
export interface IDebug {
|
|
(namespace: string): debug.IDebugger;
|
|
coerce: (val: any) => any;
|
|
disable: () => void;
|
|
enable: (namespaces: string) => void;
|
|
enabled: (namespaces: string) => boolean;
|
|
|
|
names: string[];
|
|
skips: string[];
|
|
|
|
formatters: IFormatters;
|
|
}
|
|
|
|
export interface IFormatters {
|
|
[formatter: string]: Function;
|
|
}
|
|
|
|
export interface IDebugger {
|
|
(formatter: any, ...args: any[]): void;
|
|
|
|
enabled: boolean;
|
|
log: Function;
|
|
namespace: string;
|
|
}
|
|
}
|