augment-vir - v32.2.2
    Preparing search index...

    Type Alias UnionToIntersection<Union>

    UnionToIntersection: (
        Union extends unknown ? (distributedUnion: Union) => void : never
    ) extends (mergedIntersection: infer Intersection) => void
        ? Intersection & Union
        : never

    Convert a union type to an intersection type.

    Copied from the UnionToIntersection type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • Union