-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v11 automatic Typescript support does not play well with 3rd party components #1508
Comments
Did a bit a of code walkthrough and realized, I don't see What do you suggest @sapegin ? |
Yeah, I guess properly documenting what's not supported by react-docgen and supported by react-docgen-typescript would be good start. |
😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature. |
Current behavior
RSG v11's automatic Typescript support does not seem to play well with 3rd party components.
In <v11, in combination with react-docgen-typescript, props and methods were correctly parsed after setting the propsparser property in the config. From > v11 react-docgen was upgraded so react-docgen-typescript was no longer required.
To reproduce
Clone https://github.com/dysticus/example . It contains 2 branches: notworking and working. Not working is with v11, working is with <v11 and react-docgen-typescript.
Start the styleguide. You'll see in the the non-functional version no props and no methods, in the working branch they do appear.
Expected behavior
Props and methods should be extracted for 3rd parties to, like in versions before v11.
Thanks!
The text was updated successfully, but these errors were encountered: