Skip to content

Instantly share code, notes, and snippets.

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