Enforce chalk.constructor to be called with new in TypeScript
This commit is contained in:
parent
cf6615647a
commit
1284415013
2 changed files with 0 additions and 7 deletions
|
|
@ -17,8 +17,6 @@ expectType<boolean>(chalk.supportsColor.has16m);
|
|||
|
||||
// - Chalk -
|
||||
// -- Constructor --
|
||||
expectType<Chalk>(chalk.constructor());
|
||||
expectType<Chalk>(chalk.constructor());
|
||||
expectType<Chalk>(new chalk.constructor({level: 1}));
|
||||
|
||||
// -- Properties --
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue