Skip to content

Commit 7962c76

Browse files
authoredSep 16, 2022
fix: type formatters.log with a Record type (#1561)
1 parent 73678ff commit 7962c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pino.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ declare namespace pino {
586586
* All arguments passed to the log method, except the message, will be pass to this function.
587587
* By default it does not change the shape of the log object.
588588
*/
589-
log?: (object: object) => object;
589+
log?: (object: Record<string, unknown>) => Record<string, unknown>;
590590
};
591591

592592
/**

0 commit comments

Comments
 (0)
Please sign in to comment.