-
-
Save jeffmo/c7a37142aea486b69ed412098f89737d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
var a = 42; | |
export default a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import type a from "./a.js"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> flow version | |
Flow, a static type checker for JavaScript, version 0.23.0 | |
> flow check | |
main.js:3 | |
3: import type a from "./a.js"; | |
^ Default import from `./a.js`. The default export is a value, but not a type. `import type` only works on type exports like type aliases, interfaces, and classes. If you inteded to import the type *of* a value, please use `import typeof` instead. | |
Found 1 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment