Created
April 24, 2023 22:09
-
-
Save rchl/9ca0a2bdc95f2c36c4d590572a4d038c to your computer and use it in GitHub Desktop.
TypeScript Helpers
This file contains 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
// Forces typescript to expand the type in the hover output. Useful for debugging. | |
type Prettify<T> = T extends infer U ? { [K in keyof U]: U[K] } : never; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment