Closed ghost 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 have this particular bug, it transforms the code to:
import t from "flow-runtime";
foo("bar");
function foo(str: string) {
let _strType = t.string();
t.param("str", _strType).assert(str);
str = _strType.assert(12);
}
Is it possible to keep track of type of a function's argument inside the function's body?