@eljs/utils
Version:
Collection of nodejs utility.
22 lines • 501 B
TypeScript
import { type Debugger } from 'debug';
/**
* 调试选项
*/
interface DebuggerOptions {
/**
* 仅当包含当前字符串时开启
*/
onlyWhenFocused?: boolean | string;
/**
* 对象检查深度
*/
depth?: number;
}
/**
* 创建调试器
* @param namespace 命名空间
* @param options 选项
*/
export declare function createDebugger(namespace: string, options?: DebuggerOptions): Debugger['log'] | undefined;
export {};
//# sourceMappingURL=debug.d.ts.map