Compartir a través de


UnionToIntersection type

type UnionToIntersection<Union> = (
  Union extends unknown ? (_: Union) => unknown : never
) extends (_: I) => unknown
  ? I
  : never