title: Core.z. Zod Catch Def

A2A Node SDK - v0.1.0 / Modules / Core / z / ZodCatchDef

Interface: ZodCatchDef<T>

Core.z.ZodCatchDef

Type parameters

NameType
Textends ZodTypeAny = ZodTypeAny

Hierarchy

Table of contents

Properties

Properties

catchValue

catchValue: (ctx: { error: ZodError<any> ; input: unknown }) => T["_input"]

Type declaration

▸ (ctx): T["_input"]

Parameters
NameType
ctxObject
ctx.errorZodError<any>
ctx.inputunknown
Returns

T["_input"]


description

Optional description: string

Inherited from

ZodTypeDef.description


errorMap

Optional errorMap: ZodErrorMap

Inherited from

ZodTypeDef.errorMap


innerType

innerType: T


typeName

typeName: ZodCatch