Skip to content

UnionToIntersection type

Home > @rimitive/core > UnionToIntersection

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;