Module

x/zod/index.ts>ZodCatch

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodCatch
extends ZodType<T["_output"], ZodCatchDef<T>, unknown>
import { ZodCatch } from "https://dotland.deno.dev/x/zod@v3.23.7/index.ts";

Type Parameters

T extends ZodTypeAny

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>

Static Properties

create: <T extends ZodTypeAny>(type: T, params: RawCreateParams & { catch: T["_output"] | (() => T["_output"]); }) => ZodCatch<T>