From 651691bf9f419b3471c43094caa8f478eab0b40e Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 16 Sep 2022 11:16:33 +0200 Subject: [PATCH] fix: type `formatters.log` with a Record type --- pino.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pino.d.ts b/pino.d.ts index e0f7466e7..bbaac6ee8 100644 --- a/pino.d.ts +++ b/pino.d.ts @@ -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) => Record; }; /**