-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Description
I have my components TS interface like below:
export type ButtonVariant = 'subtle' | 'basic' | 'emphasized';
export type IconProps = {
iconName?: string;
iconSize?: number;
}
export interface ButtonProps {
variant: ButtonVariant;
mediaProps: IconProps;
/** Use onPress as a function to handle button press events */
onPress: () => void;
text: string;
}
react-docgen-typescript
is able to deserialize the ButtonVariant string literal union. However, for the composed type IconProps
, it just shows the name of the type. Is it possible to expand these composed types?

Metadata
Metadata
Assignees
Labels
No labels