Skip to content

Commit

Permalink
fix: export redactOptions type
Browse files Browse the repository at this point in the history
Because it is used elsewhere in an exported type, it needs to be exported as well or else TypeScript throws an error

Fixes #1840
  • Loading branch information
wolfy1339 authored Nov 4, 2023
1 parent 186a49d commit ccd176c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pino.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type CustomLevelLogger<Options> = Options extends { customLevels: Record<string,
*/
type OnChildCallback<Options = LoggerOptions> = <ChildOptions extends pino.ChildLoggerOptions>(child: pino.Logger<Options & ChildOptions>) => void

interface redactOptions {
export interface redactOptions {
paths: string[];
censor?: string | ((value: any, path: string[]) => any);
remove?: boolean;
Expand Down

0 comments on commit ccd176c

Please sign in to comment.