Open mayank99 opened 1 year ago
I have the same issue. We define our compound components the same way, using Object.assign
. I can use the library to get the props from the root element of the compound only. Our components are written in Typescript.
I tried react-docgen-typescript
too but it doesn't have the reactDocs.parse(src, reactDocgen.resolver.findAllComponentDefinitions)
I am running into the same problem. Did you find a workaround?
I've been playing around with the latest beta, and while it works well for many cases, I could not get it to work with compound components.
A compound component generally looks like this:
I'm defining it as follows:
I would guess that
react-docgen
would need to support a few different things here:PolymorphicComponent
utility). related: #590Object.assign
declaration and reading jsdoc from there