Interface ZodCatchDef<T>

interface ZodCatchDef<T extends Zod.z.ZodTypeAny = Zod.z.ZodTypeAny> {
    catchValue: (
        ctx: { error: Zod.z.ZodError<any>; input: unknown },
    ) => T["_input"];
    description?: string;
    errorMap?: Zod.z.ZodErrorMap;
    innerType: T;
    typeName: ZodCatch;
}

Type Parameters

Hierarchy (View Summary)

Properties

catchValue: (ctx: { error: Zod.z.ZodError<any>; input: unknown }) => T["_input"]
description?: string
errorMap?: Zod.z.ZodErrorMap
innerType: T
typeName: ZodCatch