react-docgen-typescript-loader
react-docgen-typescript-loader copied to clipboard
Props details not propagated when using Pick<Props, 'someProp'>
trafficstars
Props information is not propagating when using Pick<>.
interface ContainerProps {
/** A great description **/
firstProp: string;
/** A better description **/
secondProp: number;
}
type Props = Pick<ContainerProps, 'secondProp'>;
The table lists the props as 'any' with no description, and, strangely, that they're required.
