Skip to main content
Module

x/zod/index.ts>z.ZodCatch

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

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>