grncdr / ts-react-loader

Automatic prop-types from TypeScript types
70 stars 2 forks source link

Add support for stateless function components #3

Open grncdr opened 6 years ago

grncdr commented 6 years ago

Scan the AST for functions matching the following criteria:

Then insert statements after the containing statement adding propTypes and contextTypes properties.