Skip to content

Commit

Permalink
fix: export redactOptions type (#1847)
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 committed Nov 15, 2023
1 parent 40bdff5 commit a9b8e14
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 a9b8e14

Please sign in to comment.