From a9b8e14a01971e708a72a78666803b6df3bdc3f4 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:28:32 -0500 Subject: [PATCH] fix: export `redactOptions` type (#1847) 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 5465353e8..52f86bbac 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;