Skip to main content
Module

x/zod/external.ts>ZodSchema#catch

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodSchema.prototype.catch
import { ZodSchema } from "https://deno.land/x/zod@v3.21.1/external.ts";

Parameters

def: Output

Returns

ZodCatch<this>

Parameters

def: (ctx: { error: ZodError; }) => Output

Returns

ZodCatch<this>