Skip to content

Instantly share code, notes, and snippets.

@tonyonodi
Created February 14, 2023 15:26
Show Gist options
  • Save tonyonodi/d3627a7d5cb9b26d0cac22a5453f0634 to your computer and use it in GitHub Desktop.
Save tonyonodi/d3627a7d5cb9b26d0cac22a5453f0634 to your computer and use it in GitHub Desktop.
Prettify generic
// from this tweet https://twitter.com/mattpocockuk/status/1622730173446557697
type Prettify<T> = {
[K in keyof T]: T[K]
} & {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment