Created
August 29, 2022 15:55
-
-
Save FaberVitale/223a6ea16c16a9916dbec3d928e8bed5 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
/** | |
* Defines one or more key-value properties | |
*/ | |
export type WithKeyValue<K extends string | number | symbol, Value> = { | |
[k in K]: Value; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment