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

Type Parameters

Hierarchy (View Summary)

Properties

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