Skip to content

Support for Union types #57

@stephtr

Description

@stephtr

As far as I have noticed react-docgen-typescript doesn't support union types like:

interface I1 {
  /** property 1 */
  a: string;
}
interface I2 {
  /** property 2 */
  b: string;
}
export default class Sample extends React.Component<I1 | I2, {}> {
...

At the moment when supplying styleguidist with this construct it just shows children as sole property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions