Skip to content

Commit

Permalink
fix: correct type of args passed to hooks.logMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 15, 2022
1 parent 44fe7d1 commit 4874f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pino.d.ts
Expand Up @@ -600,7 +600,7 @@ declare namespace pino {
* log method and method is the log method itself, and level is the log level. This hook must invoke the method function by
* using apply, like so: method.apply(this, newArgumentsArray).
*/
logMethod?: (args: any[], method: LogFn, level: number) => void;
logMethod?: (args: Parameters<LogFn>, method: LogFn, level: number) => void;
};

/**
Expand Down

0 comments on commit 4874f0a

Please sign in to comment.