fix(types): supportsColor is top‑level only

This commit is contained in:
ExE Boss 2019-04-25 22:10:00 +02:00
parent 98628d9f08
commit 1b168d47db
No known key found for this signature in database
GPG key ID: BF4FA5DD733D8D1A
2 changed files with 6 additions and 12 deletions

View file

@ -2,7 +2,7 @@ import {expectType} from 'tsd';
import chalk = require('.');
// - Helpers -
type colorReturn = chalk.Chalk & {supportsColor: chalk.ColorSupport};
type colorReturn = chalk.Chalk & {supportsColor?: never};
// - Level -
expectType<number>(chalk.Level.None);