Type Alias UnionKeys<T>

UnionKeys<T>: T extends T
    ? keyof T
    : never

Get the keys of a union of objects

Type Parameters

  • T