Home > @css-hooks/recommended > UnionToIntersection
UnionToIntersection type
This utility type turns a union type into an intersection type.
Signature:
export type UnionToIntersection<T> = (
T extends any ? (t: T) => any : never
) extends (t: infer U) => any
? U
: never;