Type Utils
    Preparing search index...

    Type Alias GenericStruct<T, UnionOrIntersection>

    GenericStruct:
        | V2.Struct<T>
        | (
            UnionOrIntersection extends false
                ? never
                : UnionOrIntersection extends "union"
                    ? V2.UnionStruct<T, T>
                    : UnionOrIntersection extends "intersection"
                        ? V2.IntersectionStruct<T, T>
                        : V2.UnionStruct<T, T> | V2.IntersectionStruct<T, T>
        )

    Type Parameters

    • T = any
    • UnionOrIntersection extends "union" | "intersection" | true | false = true