Created
February 24, 2024 01:25
-
-
Save colelawrence/38b30d987d70d79954ee37ef2a2bfe84 to your computer and use it in GitHub Desktop.
Improve preview of union types in autocomplete
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
/** Improve preview of union types in autocomplete. */ | |
export 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