Skip to main content
Module

x/zod/types.ts>ZodType#catch

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

Parameters

def: Output

Parameters

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