remove the .enabled property in lieu of .level (closes #234)

This commit is contained in:
Josh Junon 2019-07-12 20:05:36 +02:00
parent c25c32a25f
commit 024068f9f5
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;