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