Type Alias IntersectOfProps<A, P>

IntersectOfProps<A, P>: number extends A["length"]
    ? A[0][P]
    : A["length"] extends 0
        ? never
        : A["length"] extends 1
            ? A[0][P]
            : A[0][P] & IntersectOfProps<Tail<A>, P>

🦴 utilities

Gets the intersect of properties of the elements in A.

Type Parameters

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