Skip to content

Instantly share code, notes, and snippets.

@jeffmo
Created April 20, 2016 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmo/c7a37142aea486b69ed412098f89737d to your computer and use it in GitHub Desktop.
Save jeffmo/c7a37142aea486b69ed412098f89737d to your computer and use it in GitHub Desktop.
// @flow
var a = 42;
export default a;
// @flow
import type a from "./a.js";
> 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