Replies: 1 comment
-
Not on the roadmap yet, but noted! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Since we decided to remove our propTypes from our librarie to start to move to React 19. We decided to use JSDoc instead to describe our components but didn't want to move and migrate everything to TypeScript.
Unfortunately it seems that the autodoc of react-docgen doesnt support super fine the JSDoc. On the Description of our components most of the props are marked as unknown and the control input is by default set to object.
We also tried to generate .d.ts file next to our .jsx components which describe the component. But it also seems not to work super fine with the Storybook v8 autogen (react-vite), the types are still as unknown.
Describe the solution you'd like
We would love an autodoc who support the JSDoc documentation with the type inference and props description. As with React 19 we must delete the propTypes and the defaultProps and for the one that doesn't want to move everything to TS the JSDoc is a good workaround to the propTypes definition
Describe alternatives you've considered
We tried to generate d.ts files with jsx components and reactgen-typescript library as autodoc parser without any good results
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions