codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

Optional types should allow null, in addition to undefined, #170 #171

Closed kriszyp closed 7 years ago

phpnode commented 7 years ago

@kriszyp 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/

In this case, Flow does not allow null in place of optional - https://flowtype.org/try/#0GYVwdgxgLglg9mABAEwKYFs6IBQEMD8AXIgM5QBOMYA5gJSIDeAUIohAiXADaoB0XcanloBuJgF8mTNJmxgQXLqKZA