Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/deps.ts>z.ZodCatchDef

Universal process manager built in Deno
Go to Latest
interface z.ZodCatchDef
implements ZodTypeDef
import { type z } from "https://deno.land/x/pup@1.0.0-alpha-27/deps.ts";
const { ZodCatchDef } = z;

Type Parameters

optional
T extends ZodTypeAny = ZodTypeAny

Properties

innerType: T
catchValue: (ctx: { error: ZodError; input: unknown; }) => T["_input"]
typeName: ZodFirstPartyTypeKind.ZodCatch