Closed devlato closed 7 years ago
This plugin only provides very limited static type checking. If you want errors to also show up before running you should use Flow.
@ntkoopman Is there any possibility to run Flow with Webpack in watch mode?
Flow has its own watch mode. I don't know if there is a webpack plugin.
Hi, sorry for taking so long to respond to this, this project is now deprecated in favour of https://codemix.github.io/flow-runtime which aims for full compatibility with Flow.
With babel-plugin-flow-runtime
we don't do any static checks or optimisations at all, if it's annotated it gets checked. In practise these static checks were too difficult without reimplementing all of what flow does.
Hey folks,
I have the following types defined:
In
types.js:
In
AppService.js
:But it doesn't seems like any static analysis is being performed. Babel is correctly configured with Webpack, Typecheck plugin is also enabled and performs the required dynamic type checks, but there is no static analysis, i.e. if I pass an incorrect type argument to
setAppLoading()
, Typecheck won't show any warnings until I'll run the code.What could be wrong?