Updated TS interfaces

This commit is contained in:
Thomas Sauer 2017-07-03 00:05:36 +02:00
parent 8046089bc6
commit e35b732597
2 changed files with 8 additions and 9 deletions

View file

@ -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;