Update _flow.js

This commit is contained in:
Sindre Sorhus 2018-04-17 11:18:19 +07:00 committed by GitHub
parent 7994aea54c
commit adccce55f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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