-
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
Props not displayed from an interface imported from a .tsx file #43
Comments
I have written a failing test here: https://github.com/jrwebdev/react-docgen-typescript I had a quick look but I don't have much experience of TypeScript's AST so I'm struggling to find the root cause and don't have the time at the moment to dig further into it. |
@jrwebdev Thanks for your test. Released version v1.0.1 which includes the fix. |
I do not think that is fixed. I am still not able to see my extended props documentation. |
Same. Trying to use it without react-styileguidist, no props displayed in .tsx file. |
Having the same issue. |
Me too. Imposible to find out how to expose imported interfaces. |
version 1.0.0
When importing props from a file with a
.tsx
extension, the props are not displayed. Example:In the above example
prop1
andprop2
are not displayed. Happens even if the only thing inComponent2.tsx
is the interface, therefore doesn't appear to be related to React being imported or a component being exported in the same file. Also happens if the props are imported from a.tsx
file and are used as-is (i.e. not extended).Works fine if the inherited props are housed in the same file or imported from a
.ts
file.The text was updated successfully, but these errors were encountered: