Skip to main content
Module

x/zod/index.ts>z.ZodCatchDef

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
interface z.ZodCatchDef
implements ZodTypeDef
import { type z } from "https://deno.land/x/zod@v3.21.4/index.ts";
const { ZodCatchDef } = z;

Properties

innerType: T
catchValue: (ctx: { error: ZodError; input: unknown; }) => T["_input"]
typeName: ZodFirstPartyTypeKind.ZodCatch