Interface ZodDiscriminatedUnionDef<Discriminator, Options>

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

Type Parameters

Hierarchy (View Summary)

Properties

description?: string
discriminator: Discriminator
errorMap?: Zod.z.ZodErrorMap
options: Options