Remove support for tagged template literals (#524)
This commit is contained in:
parent
f478655c3c
commit
c987c61486
6 changed files with 8 additions and 442 deletions
|
|
@ -34,12 +34,6 @@ expectType<ChalkInstance>(new Chalk({level: 1}));
|
|||
// -- Properties --
|
||||
expectType<ColorSupportLevel>(chalk.level);
|
||||
|
||||
// -- Template literal --
|
||||
expectType<string>(chalk``);
|
||||
const name = 'John';
|
||||
expectType<string>(chalk`Hello {bold.red ${name}}`);
|
||||
expectType<string>(chalk`Works with numbers {bold.red ${1}}`);
|
||||
|
||||
// -- Color methods --
|
||||
expectAssignable<colorReturn>(chalk.rgb(0, 0, 0));
|
||||
expectAssignable<colorReturn>(chalk.hex('#DEADED'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue