Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

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

Open
clintandrewhall opened this issue Sep 25, 2019 · 0 comments
Open

Comments

@clintandrewhall
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant