Created
January 15, 2019 14:45
-
-
Save nicojs/6be0fe34dfc3fba38575db69127731f6 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 CorrespondingTypes<Tokens extends (keyof Context)[]> = { | |
[I in keyof Tokens]: Tokens[I] extends keyof Context ? Context[Tokens[I]] : never; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment