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

Type Parameters

Hierarchy (view full)

Properties

catchValue: ((ctx) => T["_input"])

Type declaration

    • (ctx): T["_input"]
    • Parameters

      • ctx: {
            error: ZodError<any>;
            input: unknown;
        }

      Returns T["_input"]

description?: string
errorMap?: ZodErrorMap
innerType: T
typeName: ZodCatch

Generated using TypeDoc