Skip to content

Commit

Permalink
fix(type): add child method default generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusvellone committed May 3, 2023
1 parent 4a819bf commit 1db3cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pino.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface LoggerExtras<Options = LoggerOptions> extends EventEmitter {
* @param options: an options object that will override child logger inherited options.
* @returns a child logger instance.
*/
child<ChildOptions extends pino.ChildLoggerOptions>(bindings: pino.Bindings, options?: ChildOptions): pino.Logger<Options & ChildOptions>;
child<ChildOptions extends pino.ChildLoggerOptions = {}>(bindings: pino.Bindings, options?: ChildOptions): pino.Logger<Options & ChildOptions>;

/**
* This can be used to modify the callback function on creation of a new child.
Expand Down

0 comments on commit 1db3cfa

Please # to comment.