Closed ajihyf closed 7 years ago
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.
I checked and babel-plugin-flow-runtime
does not seem to have this particular bug, but it doesn't yet handle the hoisting of the type declarations correctly, I've opened an issue here: https://github.com/codemix/flow-runtime/issues/1
Hi, I'm using a disjoint union type like this
However the plugin throws an error
Literal is not a valid operator for instanceOf
. It seems that the plugin simply transform type annotations toinstanceOf
for runtime type checking.