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?

I have my components TS interface like below:
react-docgen-typescriptis able to deserialize the ButtonVariant string literal union. However, for the composed typeIconProps, it just shows the name of the type. Is it possible to expand these composed types?