diff --git a/index.d.ts b/index.d.ts index 0bd1d76..a186233 100644 --- a/index.d.ts +++ b/index.d.ts @@ -58,7 +58,7 @@ export type Options = { @default 'cyan' */ - readonly color?: Color; + readonly color?: Color | boolean; /** Set to `false` to stop Ora from hiding the cursor. @@ -186,7 +186,7 @@ export interface Ora { /** Change the spinner color. */ - color: Color; + color: Color | boolean; /** Change the spinner indent. diff --git a/readme.md b/readme.md index 5fa97f5..834e3fd 100644 --- a/readme.md +++ b/readme.md @@ -76,9 +76,9 @@ Or an object like: ##### color -Type: `string`\ +Type: `string | boolean`\ Default: `'cyan'`\ -Values: `'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'` +Values: `'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray' | boolean` The color of the spinner.