UnionToIntersection type
type UnionToIntersection<Union> = (
Union extends unknown ? (_: Union) => unknown : never
) extends (_: I) => unknown
? I
: never
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
type UnionToIntersection<Union> = (
Union extends unknown ? (_: Union) => unknown : never
) extends (_: I) => unknown
? I
: never