UNPKG

type-plus

Version:
6 lines 259 B
/** * `UnionKeys<T>` will distribute keys of an union to individual types. * This should be used in conjuncture with distributive types. */ export type UnionKeys<T> = keyof T | (T extends unknown ? keyof T : never); //# sourceMappingURL=union_keys.d.ts.map