Deprecate chalk.constructor() in favor of new chalk.Instance() (#322)
This commit is contained in:
parent
60959e05cf
commit
de2f4cd606
11 changed files with 110 additions and 88 deletions
|
|
@ -16,8 +16,8 @@ expectType<boolean>(chalk.supportsColor.has256);
|
|||
expectType<boolean>(chalk.supportsColor.has16m);
|
||||
|
||||
// - Chalk -
|
||||
// -- Constructor --
|
||||
expectType<Chalk>(new chalk.constructor({level: 1}));
|
||||
// -- Instance --
|
||||
expectType<Chalk>(new chalk.Instance({level: 1}));
|
||||
|
||||
// -- Properties --
|
||||
expectType<boolean>(chalk.enabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue