rrdelaney / ReasonablyTyped

:diamond_shape_with_a_dot_inside: Converts Flow and TypeScript definitions to Reason interfaces
https://rrdelaney.github.io/ReasonablyTyped/
MIT License
518 stars 24 forks source link

Support implementation of component classes. #48

Closed cristianoc closed 6 years ago

cristianoc commented 6 years ago

Support class implementations extending React.Component.

The type of props is extracted similarly to pure export declarations.

Support ignoring some statements present in implementations, but not essential to extract the type of components.

Support inlining of prop types.

Extend treatment of type tables with a global table of all the toplevel type definitions.

Add tests for components defined with and without inlining the type of props.

rrdelaney commented 6 years ago

Thanks for all the help here :smile: I've added you as a collaborator so you can just commit to master