Skip to content

Commit

Permalink
Update index.d.ts to support multiple color entries (#314)
Browse files Browse the repository at this point in the history
The colorize format supports passing in arrays of colors/styles for individual colors. The typescript needs to be updated to match the code.
  • Loading branch information
a0js authored Jul 26, 2024
1 parent 25f5b6c commit ae6e926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface ColorizeOptions {
/**
* An object containing the colors for the log levels. For example: `{ info: 'blue', error: 'red' }`.
*/
colors?: Record<string, string>;
colors?: Record<string, string | string[]>;
}

export interface JsonOptions {
Expand Down

0 comments on commit ae6e926

Please sign in to comment.