Created
November 25, 2020 00:47
-
-
Save jeromeludmann/531987cba0fe3c6c1b0f2220f41961b3 to your computer and use it in GitHub Desktop.
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
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends | |
((k: infer I) => void) ? I | |
: never; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment