Add missing false type to chalk.supportsColor (#347)

This commit is contained in:
Florian Reuschel 2019-06-10 19:47:16 +02:00 committed by Sindre Sorhus
parent 4ab4665994
commit d82b2a6638
2 changed files with 5 additions and 4 deletions

2
index.d.ts vendored
View file

@ -296,7 +296,7 @@ Order doesn't matter, and later styles take precedent in case of a conflict.
This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
*/
declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
supportsColor: chalk.ColorSupport;
supportsColor: chalk.ColorSupport | false;
Level: typeof LevelEnum;
};