From 9ba9380cd32cf7d9f84543bb072488d8583d96bf Mon Sep 17 00:00:00 2001 From: eakinyele Date: Wed, 15 May 2024 12:35:33 +0100 Subject: [PATCH] add logger instance as third parameter --- pino.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pino.d.ts b/pino.d.ts index 3efe72276..f8cad6f07 100644 --- a/pino.d.ts +++ b/pino.d.ts @@ -28,7 +28,7 @@ import type { WorkerOptions } from "worker_threads"; type ThreadStream = any type TimeFn = () => string; -type MixinFn = (mergeObject: object, level: number) => object; +type MixinFn = (mergeObject: object, level: number, logger:pino.Logger) => object; type MixinMergeStrategyFn = (mergeObject: object, mixinObject: object) => object; type CustomLevelLogger = { [level in CustomLevels]: LogFn } @@ -373,7 +373,7 @@ declare namespace pino { * is called. The function must synchronously return an object. The properties of the * returned object will be added to the logged JSON. */ - mixin?: MixinFn; + mixin?: MixinFn; /** * If provided, the `mixinMergeStrategy` function is called each time one of the active