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

allow optional react props #165

Closed quentin- closed 7 years ago

quentin- commented 8 years ago

I'm surprise I could not find any reported issue about this.

props: {
  optionalProp?: string,
  nullableProp: ?string,
  optionalAndNullableProps?: ?string,
}
phpnode commented 7 years ago

@quentin- thanks for this and sorry it took so long for me to get back to you, but I've deprecated this project in favour of https://codemix.github.io/flow-runtime/#/

flow-runtime has full support for optional prop types :)