effect-io-ai

Package: effect
Module: Types

Types.UnionToIntersection

A utility type that transforms a union type T into an intersection type.

Signature

type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R
  : never

Source

Since v2.0.0