From ccd176c2076b38e14797618c2d071afd8d456f35 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Sat, 4 Nov 2023 10:50:25 -0400 Subject: [PATCH] fix: export `redactOptions` type Because it is used elsewhere in an exported type, it needs to be exported as well or else TypeScript throws an error Fixes #1840 --- pino.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pino.d.ts b/pino.d.ts index 91c577078..d2b45cae0 100644 --- a/pino.d.ts +++ b/pino.d.ts @@ -39,7 +39,7 @@ type CustomLevelLogger = Options extends { customLevels: Record = (child: pino.Logger) => void -interface redactOptions { +export interface redactOptions { paths: string[]; censor?: string | ((value: any, path: string[]) => any); remove?: boolean;