mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #11057 from rundef/master
[pino]: Fix constructor argument stream typing
This commit is contained in:
@@ -26,6 +26,12 @@ var instance = PINO({
|
||||
}
|
||||
})
|
||||
|
||||
var pretty = PINO.pretty()
|
||||
var instance2 = PINO({
|
||||
name: 'app',
|
||||
safe: true
|
||||
}, pretty)
|
||||
|
||||
|
||||
var logger = instance
|
||||
logger.child({ a: 'property' }).info('hello child!')
|
||||
|
||||
Vendored
+2
-2
@@ -41,8 +41,8 @@ declare module 'pino' {
|
||||
}
|
||||
|
||||
interface Pino {
|
||||
(optionsOrStream?: LoggerOptions | stream.Writable): Logger
|
||||
(options: LoggerOptions, stream: stream.Writable): Logger
|
||||
(optionsOrStream?: LoggerOptions | stream.Writable | stream.Readable): Logger
|
||||
(options: LoggerOptions, stream: stream.Writable | stream.Readable): Logger
|
||||
levels: {
|
||||
values: LevelLabelsToValues
|
||||
labels: LevelValuesToLabels
|
||||
|
||||
Reference in New Issue
Block a user