Skip to content

Instantly share code, notes, and snippets.

@dagda1
Last active April 5, 2020 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagda1/3ede618272a7638e3553095c6cc3a31b to your computer and use it in GitHub Desktop.
Save dagda1/3ede618272a7638e3553095c6cc3a31b to your computer and use it in GitHub Desktop.
export type ComponentPropsType<C> = C extends React.FC<infer P> ? P : never;
export type ThenType<T> = T extends Promise<infer U> ? U : never;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment