fix: use export = for typescript module definition

This commit is contained in:
calebboyd 2018-03-02 18:46:02 -06:00
parent 84f27d4bd8
commit fa760967a2
4 changed files with 37 additions and 35 deletions

View file

@ -1,4 +1,5 @@
import chalk, {Level} from '..';
import chalk from '..'
import chalktr = require('..')
chalk.underline('foo');
chalk.red('foo');
@ -17,16 +18,16 @@ chalk.underline.red.bgGreen('foo');
chalk.grey('foo');
chalk.constructor({level: 1});
const ctx = chalk.constructor({level: Level.TrueColor });
const ctx = chalk.constructor({level: Chalk.Level.TrueColor });
ctx('foo');
ctx.red('foo');
ctx`foo`;
chalk.enabled = true;
chalk.level = 1;
chalk.level = Level.Ansi256;
chalk.level = Chalk.Level.Ansi256;
chalk.level === Level.Ansi256;
chalk.level === Chalk.Level.Ansi256;
let chalkInstance = new chalk.constructor();
chalkInstance = chalk.constructor();