UNPKG

templates-mo

Version:

Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting

32 lines (31 loc) • 882 B
import debug from 'debug'; import './formatters'; import CreateDebugGroup from './createDebugGroup'; export declare const logFunctions: string[]; interface CreateDebugOpts { disableLog: boolean; } declare class CreateDebug { static DEFAULT_OPTS: CreateDebugOpts; name: string; _logger: ReturnType<typeof debug>; opts: CreateDebugOpts; _groups: { [p: string]: CreateDebugGroup; }; info: debug.Debugger; error: debug.Debugger; debug: debug.Debugger; success: debug.Debugger; warn: debug.Debugger; log: debug.Debugger; constructor(name: string, opts?: Partial<CreateDebugOpts>); _resync(): void; isEnabled(): boolean; enable(): this; group(name: string, { clear }?: { clear?: boolean; }): CreateDebugGroup; printGroup(group: CreateDebugGroup | string): void; } export default CreateDebug;