You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'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: Implicitly typedprops
in FunctionComponent not found #590Object.assign
declaration and reading jsdoc from thereThe text was updated successfully, but these errors were encountered: