Change tagged template literal argument type to accept unknown instead of just string (#316)
This commit is contained in:
parent
587a5fbcbb
commit
7f6e5630b0
4 changed files with 4 additions and 11 deletions
|
|
@ -27,6 +27,7 @@ expectType<Level>(chalk.level);
|
|||
expectType<string>(chalk``);
|
||||
const name = 'John';
|
||||
expectType<string>(chalk`Hello {bold.red ${name}}`);
|
||||
expectType<string>(chalk`Works with numbers {bold.red ${1}}`);
|
||||
|
||||
// -- Color methods --
|
||||
expectType<colorReturn>(chalk.hex('#DEADED'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue