Last active
March 12, 2021 09:54
-
-
Save BackEndTea/d4da1c082b3d9eddcde1d2e6c19c4fcd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
interface Foo { | |
foo(): void; | |
} | |
// One | |
type FooBag = { | |
one: Foo, | |
two: Foo, | |
three: Foo | |
}; | |
// Two | |
type FooKey = 'one'|'two'|'three'; | |
type FooBag = Record<FooKey, Foo>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment