UnionToIntersection type
Home > @rimitive/core > UnionToIntersection
UnionToIntersection type
Section titled “UnionToIntersection type”Utility type: Convert a union to an intersection. Used internally to combine types.
Signature:
export type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;