fix(ts+flow): add false case for reexported supportsColor

fix #318
This commit is contained in:
Pavel Lang 2018-12-27 19:27:14 +01:00
parent 6be301b1a4
commit b1322eacd0
No known key found for this signature in database
GPG key ID: 623A223A57974B55
3 changed files with 6 additions and 6 deletions

2
index.d.ts vendored
View file

@ -271,6 +271,6 @@ export interface Chalk {
* 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 & { supportsColor: ColorSupport };
declare const chalk: Chalk & { supportsColor: false | ColorSupport };
export default chalk;