mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
update pino definition to facilitate returning loggers
This commit is contained in:
Vendored
+7
-6
@@ -5,9 +5,12 @@
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
declare module 'pino' {
|
||||
import stream = require('stream');
|
||||
|
||||
import stream = require('stream')
|
||||
declare function P(optionsOrStream?: P.LoggerOptions | stream.Writable | stream.Readable): P.Logger;
|
||||
declare function P(options: P.LoggerOptions, stream: stream.Writable | stream.Readable): P.Logger;
|
||||
|
||||
declare namespace P {
|
||||
|
||||
type Level = 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent'
|
||||
type Headers = {[header: string]: string}
|
||||
@@ -79,8 +82,6 @@ declare module 'pino' {
|
||||
LOG_VERSION: number
|
||||
stdSerializers: Serializers
|
||||
}
|
||||
|
||||
var p: Pino
|
||||
export = p
|
||||
|
||||
}
|
||||
|
||||
export = P;
|
||||
|
||||
Reference in New Issue
Block a user