Updated typings
This commit is contained in:
parent
ecf8f86c7c
commit
8046089bc6
2 changed files with 18 additions and 7 deletions
|
|
@ -5,6 +5,7 @@ chalk.red('foo');
|
|||
chalk.bgRed('foo');
|
||||
|
||||
const name = 'Josh';
|
||||
const number = 0;
|
||||
chalk`Hello {bold.red ${name}}`;
|
||||
|
||||
chalk.red`foo`;
|
||||
|
|
@ -15,13 +16,15 @@ chalk.red.bgGreen.underline('foo');
|
|||
chalk.underline.red.bgGreen('foo');
|
||||
|
||||
chalk.grey('foo');
|
||||
chalk.red(0);
|
||||
|
||||
const ctx = chalk.constructor({level: 1});
|
||||
chalk.constructor({level: 1});
|
||||
const ctx = chalk.constructor({level: chalk.ChalkLevel.TrueColor });
|
||||
ctx('foo');
|
||||
ctx.red('foo');
|
||||
ctx`foo`;
|
||||
|
||||
chalk.level === chalk.ChalkLevel.Extended;
|
||||
|
||||
chalk.enabled;
|
||||
chalk.supportsColor;
|
||||
chalk.level;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue