Created
November 12, 2022 20:12
-
-
Save dioxmio/7f9b1707b9ab9ee2447472129a1f61c0 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 Keys = 'a' | 'b' | 'c'; | |
const foo: Record<Keys, number> = { | |
a: 255, | |
b: 255, | |
c: 255 | |
}; | |
// typeof foo is | |
// const foo: Record<Keys, number> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment