Skip to main content
Module

x/zod/mod.ts>ZodType#catch

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

Parameters

def: Output

Returns

ZodCatch<this>

Parameters

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

Returns

ZodCatch<this>