Type Alias UnionKeys<T>

UnionKeys: keyof T | (T extends unknown ? keyof T : never)

UnionKeys<T> will distribute keys of an union to individual types. This should be used in conjuncture with distributive types.

Type Parameters

  • T