Skip to content

Commit

Permalink
Fix: add missing useOnlyCustomProps options to type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
pcdevil committed May 26, 2024
1 parent 77e85fd commit 551a2ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ interface PrettyOptions_ {
* @example ( Object ) customColors: { info: 'white', some_level: 'red' }
*/
customColors?: string|object;
/**
* Only use custom levels and colors (if provided); else fallback to default levels and colors.
*
* @default true
*/
useOnlyCustomProps?: boolean;
}

declare function build(options: PrettyOptions_): PinoPretty.PrettyStream;
Expand Down

0 comments on commit 551a2ef

Please sign in to comment.