Interface ZodDiscriminatedUnionDef<Discriminator, Options>

interface ZodDiscriminatedUnionDef<
    Discriminator extends string,
    Options extends
        ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<
        string,
    >[],
> {
    description?: string;
    discriminator: Discriminator;
    errorMap?: ZodErrorMap;
    options: Options;
    optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;
    typeName: ZodDiscriminatedUnion;
}

Type Parameters

Hierarchy (View Summary)

Properties

description?: string
discriminator: Discriminator
errorMap?: ZodErrorMap
options: Options
optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>