Type Alias UnionOfProps<A, P>

UnionOfProps: A["length"] extends 0
    ? never
    : A["length"] extends 1 ? A[0][P] : A[0][P] | UnionOfProps<Tail<A>, P>

Gets the union of properties of the elements in A

Type Parameters

  • A extends readonly Record<any, any>[]
  • P extends KeyTypes