Skip to main content
Module

x/zod/external.ts>ZodCatch

TypeScript-first schema validation with static type inference
Extremely Popular
Latest
class ZodCatch
extends ZodType<T["_output"], ZodCatchDef<T>, unknown>
import { ZodCatch } from "https://deno.land/x/zod@v3.23.4/external.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>