1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
341 B
TypeScript

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