react-docgen-typescript-loader icon indicating copy to clipboard operation
react-docgen-typescript-loader copied to clipboard

Props details not propagated when using Pick<Props, 'someProp'>

Open clintandrewhall opened this issue 6 years ago • 0 comments
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.

Screen Shot 2019-09-25 at 2 37 20 PM Screen Shot 2019-09-25 at 2 37 32 PM

clintandrewhall avatar Sep 25 '19 19:09 clintandrewhall