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.20/types.ts";

Parameters

def: Input

Returns

ZodCatch<this>

Parameters

def: () => Input

Returns

ZodCatch<this>