Update _flow.js
This commit is contained in:
parent
7994aea54c
commit
adccce55f6
1 changed files with 6 additions and 7 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import chalk from '..';
|
import chalk from '..';
|
||||||
|
|
||||||
// $ExpectError (Can't have typo in option name)
|
// $ExpectError (Can't have typo in option name)
|
||||||
|
|
@ -50,7 +49,7 @@ chalk.enabled = true;
|
||||||
chalk.level = 10;
|
chalk.level = 10;
|
||||||
chalk.level = 1;
|
chalk.level = 1;
|
||||||
|
|
||||||
let chalkInstance = new chalk.constructor();
|
const chalkInstance = new chalk.constructor();
|
||||||
|
|
||||||
// $ExpectError (Can't have typo in method name)
|
// $ExpectError (Can't have typo in method name)
|
||||||
chalkInstance.blu('foo');
|
chalkInstance.blu('foo');
|
||||||
|
|
@ -92,4 +91,4 @@ chalk.black;
|
||||||
|
|
||||||
// $ExpectError (Can't write to readonly property)
|
// $ExpectError (Can't write to readonly property)
|
||||||
chalk.reset = 'foo';
|
chalk.reset = 'foo';
|
||||||
console.log(chalk.reset)
|
console.log(chalk.reset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue