Remove the .enabled property in favor of .level (#356)

This commit is contained in:
Qix 2019-07-13 07:45:31 +02:00 committed by Sindre Sorhus
parent 87156ce8e2
commit 1f77953f1a
9 changed files with 17 additions and 101 deletions

16
index.d.ts vendored
View file

@ -24,13 +24,6 @@ declare namespace chalk {
type Level = LevelEnum;
interface Options {
/**
Enable or disable Chalk.
@default true
*/
enabled?: boolean;
/**
Specify the color support for Chalk.
By default, color support is automatically detected based on the environment.
@ -98,13 +91,6 @@ declare namespace chalk {
*/
Instance: Instance;
/**
Enable or disable Chalk.
@default true
*/
enabled: boolean;
/**
The color support for Chalk.
By default, color support is automatically detected based on the environment.
@ -248,7 +234,7 @@ declare namespace chalk {
readonly strikethrough: Chalk;
/**
Modifier: Prints the text only when Chalk is enabled.
Modifier: Prints the text only when Chalk has a color support level > 0.
Can be useful for things that are purely cosmetic.
*/
readonly visible: Chalk;