-
Notifications
You must be signed in to change notification settings - Fork 255
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
Invalid displayName
parsing starting with v2.1.0
#395
Comments
I am surprised that this wasn't included in our test cases before :( |
Is this the same issue as in #437? And would the suggested fix there, also fix this case? |
@kylemh thanks for pointing that out. |
There was no activity for a long time. The issue will be closed soon. |
This issue has an open PR awaiting code review. |
There was no activity for a long time. The issue will be closed soon. |
I've never liked you. |
After the removal of the parsing filter in #368, the first
displayName
encountered is selected, whether or not its component is exported. To test, add the following lines to the end of https://github.com/styleguidist/react-docgen-typescript/blob/master/examples/react-styleguidist-example/components/HocComponent.tsx:Invalid results based on v2.1.0, tested via
node -e 'console.log(require("react-docgen-typescript").parse("./ModifiedHocComponent.tsx"))'
...Valid results based on v2.0.0, testing the same...
The text was updated successfully, but these errors were encountered: