metarize
Version:
A lightweight, ESM-compatible TypeScript metadata library for creating and inspecting decorators with zero dependencies
28 lines (27 loc) • 642 B
TypeScript
/**
* Simplified debug utility that provides basic namespace and conditional output functionality
*/
/**
* Debugger interface definition
*/
export interface Debugger {
/**
* Whether debug output is enabled
*/
enabled: boolean;
/**
* Debug output function
* @param formatter Format string or object
* @param args Additional parameters
*/
(formatter: any, ...args: any[]): void;
}
/**
* Create a debugger instance
* @param namespace Namespace
*/
export declare function createDebug(namespace: string): Debugger;
/**
* Default export for createDebug function
*/
export default createDebug;