Skip to content

Commit

Permalink
fix: type formatters.log with a Record type
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 16, 2022
1 parent 44fe7d1 commit bd830ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pino.d.ts
Expand Up @@ -586,7 +586,7 @@ declare namespace pino {
* All arguments passed to the log method, except the message, will be pass to this function.
* By default it does not change the shape of the log object.
*/
log?: (object: object) => object;
log?: (object: Record<string, unknown>) => Record<string, unknown>;
};

/**
Expand Down

0 comments on commit bd830ae

Please sign in to comment.