typedash
Version:
modern, type-safe collection of utility functions
10 lines • 369 B
text/typescript
//#region src/types/KeysOfUnion.d.ts
/**
* Gets the value at key of object. Similar to `keyof T`, but gets the keys of all the types in a union.
*
* See https://stackoverflow.com/a/49402091/2677913 for more details.
*/
type KeysOfUnion<T> = T extends T ? keyof T : never;
//#endregion
export { KeysOfUnion as t };
//# sourceMappingURL=KeysOfUnion-D3-apcAx.d.cts.map