UNPKG

341 BTypeScriptView Raw
1declare const levels: readonly ["error", "warn", "log", "info"];
2export type DebugLevel = (typeof levels)[number];
3declare function namespace(ns: string): Record<DebugLevel, (...args: unknown[]) => void>;
4declare namespace namespace {
5 var level: (newLevel: false | "error" | "warn" | "log" | "info") => void;
6}
7export default namespace;