mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
define pretty
This commit is contained in:
Vendored
+2
-1
@@ -12,6 +12,8 @@ declare function P(options: P.LoggerOptions, stream: stream.Writable | stream.Re
|
||||
|
||||
declare namespace P {
|
||||
|
||||
function pretty(opts?: {timeTransOnly?: boolean, levelFirst?: boolean, formatter?: (str: string) => void}): stream.Readable;
|
||||
|
||||
type Level = 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent';
|
||||
interface Headers {
|
||||
[header: string]: string;
|
||||
@@ -59,7 +61,6 @@ declare namespace P {
|
||||
labels: LevelValuesToLabels
|
||||
};
|
||||
LOG_VERSION: number;
|
||||
pretty(opts?: {timeTransOnly?: boolean}): stream.Readable;
|
||||
}
|
||||
|
||||
type LevelChangeEventListener = (lvl: string, val: number, prevLvl: string, prevVal: number) => void;
|
||||
|
||||
Reference in New Issue
Block a user