Type Utils
    Preparing search index...

    Type Alias GenericStruct<T, UnionOrIntersection>

    GenericStruct: T extends Function
        ? V3.AnyStruct & { schema: TypeGuard<T> }
        :
            | V3.Struct<T>
            | (
                UnionOrIntersection extends false
                    ? never
                    : UnionOrIntersection extends "union"
                        ? T extends any[] ? V3.UnionStruct<T> : never
                        : UnionOrIntersection extends "intersection"
                            ? T extends any[] ? V3.IntersectionStruct<T> : never
                            : T extends any[]
                                ? V3.UnionStruct<T>
                                | V3.IntersectionStruct<T>
                                : never
            )

    Type Parameters

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