TS-Scribe - v0.6.2
    Preparing search index...

    Type Alias UnionToIntersection<T>

    UnionToIntersection: (T extends any ? (x: T) => any : never) extends (
        x: infer V,
    ) => any
        ? V
        : never

    Converts a union type (|) into an intersection type (&). This utility type is helpful for extracting the intersection of all possible types in a union.

    Type Parameters

    • T

      The union type to be converted into an intersection type.