Last active
April 28, 2021 08:26
-
-
Save einarlove/f6fa559f5942dce2afa70c10d3f4146e to your computer and use it in GitHub Desktop.
Pick the props you want from another react function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Props< | |
T extends React.FunctionComponent, | |
P extends keyof Parameters<T>[0] | |
> = Pick<Parameters<T>[0], P> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment