babel-plugin-typescript-to-proptypes
babel-plugin-typescript-to-proptypes copied to clipboard
Does not generate propTypes for forwardRef.
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.