Closed bolasblack closed 7 years ago
@bolasblack sorry about the delay getting back to you, thanks for this but I've decided to deprecate this repo in favour of https://codemix.github.io/flow-runtime/
I checked and this bug doesn't occur with babel-plugin-flow-runtime
.
Flowtype not allow
((param: string | null) => {})(undefined)
: https://flowtype.org/try/#0PQKgBAAgZgNg9gdzCYAoVAKDAHAhgJ1wFsAuMAZwBd8BLAOwHMwAfMOgVxhgEowBeAHxgA3gF9uGdnQAmAUyj1Z07kAI found typecheck will check the type like:
typeof param === 'string' || param == null
But the test file seems intricate, I have no idea about how to add a new test...