diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-13 21:34:48 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-13 21:34:48 -0800 |
| commit | 76cb9c2a39d477a64824a985ade40507e3bbade1 (patch) | |
| tree | 41e997aa9c6f538d3a136af61dae9424db2005a9 /vanilla/node_modules/obug/dist/core.d.ts | |
| parent | 819a39a21ac992b1393244a4c283bbb125208c69 (diff) | |
| download | neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.gz neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.bz2 neko-76cb9c2a39d477a64824a985ade40507e3bbade1.zip | |
feat(vanilla): add testing infrastructure and tests (NK-wjnczv)
Diffstat (limited to 'vanilla/node_modules/obug/dist/core.d.ts')
| -rw-r--r-- | vanilla/node_modules/obug/dist/core.d.ts | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vanilla/node_modules/obug/dist/core.d.ts b/vanilla/node_modules/obug/dist/core.d.ts new file mode 100644 index 0000000..61f80ae --- /dev/null +++ b/vanilla/node_modules/obug/dist/core.d.ts @@ -0,0 +1,47 @@ +import { InspectOptions } from "node:util"; + +//#region src/types.d.ts +interface InspectOptions$1 extends InspectOptions { + hideDate?: boolean; +} +/** +* Map of special "%n" handling functions, for the debug "format" argument. +* +* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". +*/ +interface Formatters { + [formatter: string]: (this: Debugger, v: any) => string; +} +interface Debugger extends Required<DebugOptions> { + (formatter: any, ...args: any[]): void; + namespace: string; + enabled: boolean; + extend: (namespace: string, delimiter?: string) => Debugger; +} +interface DebugOptions { + useColors?: boolean; + color?: string | number; + formatArgs?: (this: Debugger, diff: number, args: [string, ...any[]]) => void; + formatters?: Formatters; + /** Node.js only */ + inspectOpts?: InspectOptions$1; + /** Humanize a duration in milliseconds */ + humanize?: (value: number) => string; + log?: (this: Debugger, ...args: any[]) => void; +} +//#endregion +//#region src/core.d.ts +/** +* Returns a string of the currently enabled debug namespaces. +*/ +declare function namespaces(): string; +/** +* Disable debug output. +*/ +declare function disable(): string; +/** +* Returns true if the given mode name is enabled, false otherwise. +*/ +declare function enabled(name: string): boolean; +//#endregion +export { Debugger as a, DebugOptions as i, enabled as n, Formatters as o, namespaces as r, InspectOptions$1 as s, disable as t };
\ No newline at end of file |
