extra tests, specific benchmark, example in readme
This commit is contained in:
parent
7d238e2ebb
commit
e5ea8df1e5
5 changed files with 26 additions and 2 deletions
|
|
@ -154,6 +154,11 @@ expectType<string>(chalk.bgWhiteBright`foo`);
|
|||
expectType<string>(chalk.red.bgGreen.underline('foo'));
|
||||
expectType<string>(chalk.underline.red.bgGreen('foo'));
|
||||
|
||||
// -- Complex template literal --
|
||||
expectType<string>(chalk.underline``);
|
||||
expectType<string>(chalk.red.bgGreen.bold`Hello {italic.blue ${name}}`);
|
||||
expectType<string>(chalk.strikethrough.cyanBright.bgBlack`Works with {reset {bold numbers}} {bold.red ${1}}`);
|
||||
|
||||
// -- Color types ==
|
||||
expectType<typeof chalk.Color>('red');
|
||||
expectError<typeof chalk.Color>('hotpink');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue