fix(types): supportsColor is top‑level only
This commit is contained in:
parent
98628d9f08
commit
1b168d47db
2 changed files with 6 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue