mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-26 11:00:06 +00:00
8 lines
233 B
TypeScript
8 lines
233 B
TypeScript
![]() |
/**
|
||
|
* Create a generic String-Union key -> value mapping constraint
|
||
|
* where the string union must be keys on the map and values
|
||
|
*/
|
||
|
type StringUnionKeyToValue<U extends string> = { [K in U]: K };
|
||
|
|
||
|
export { StringUnionKeyToValue };
|