Skip to content

Instantly share code, notes, and snippets.

@AmirTugi
Created January 25, 2019 13:31
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 AmirTugi/139a18a152c490830b962078c0d15662 to your computer and use it in GitHub Desktop.
Save AmirTugi/139a18a152c490830b962078c0d15662 to your computer and use it in GitHub Desktop.
type ExtractToppings<P> = P extends Pizza<infer T> ? T : never;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment