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

Type Parameters

Hierarchy (view full)

Properties

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