milesj / babel-plugin-typescript-to-proptypes

Generate React PropTypes from TypeScript interfaces or type aliases.
MIT License
367 stars 25 forks source link

Does not generate propTypes for forwardRef. #44

Open mercurial20 opened 3 years ago

mercurial20 commented 3 years ago

I react component library with configuration: storybook, rollup, typescript, react. components use React.forwardRef I tried to generate propTypes for components but it did nothing. It builded without error, but component.propTypes is not generated. I tried with React.FC instead of React.forwardRef and it works normally.