@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
24 lines (23 loc) • 622 B
TypeScript
export interface IDebug {
(namespace: string): IDebugger;
coerce: (val: any) => any;
disable: () => string;
enable: (namespaces: string) => void;
enabled: (namespaces: string) => boolean;
log: (...args: any[]) => any;
names: RegExp[];
skips: RegExp[];
formatters: DebugFormatters;
}
export interface DebugFormatters {
[formatter: string]: (v: any) => string;
}
export interface IDebugger {
(...args: any[]): void;
color: string;
enabled: boolean;
log: (...args: any[]) => any;
namespace: string;
destroy: () => boolean;
}
export declare const Debug: IDebug;