// Type definitions for console-log-level 1.4 // Project: https://github.com/watson/console-log-level // Definitions by: Ali Ijaz Sheikh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 type PrefixFunction = (level: string) => string; declare namespace consoleLogLevel { type LogLevelNames = "trace" | "debug" | "info" | "warn" | "error" | "fatal"; type Logger = Record void>; } interface Options { level?: consoleLogLevel.LogLevelNames; prefix?: string | PrefixFunction; stderr?: boolean; } declare function consoleLogLevel(opts: Options): consoleLogLevel.Logger; export = consoleLogLevel;