Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

z.ZodCatchDef

import type { z } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { ZodCatchDef } = z;
interface ZodCatchDef <T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
catchValue: (ctx: {
error: ZodError;
input: unknown;
}
) => T["_input"]
;
innerType: T;
}

§Type Parameters

§Extends

§Properties

§
catchValue: (ctx: {
error: ZodError;
input: unknown;
}
) => T["_input"]
[src]
§
innerType: T
[src]