title: Core.z. Zod Catch Def
A2A Node SDK - v0.1.0 / Modules / Core / z / ZodCatchDef
Interface: ZodCatchDef<T>
Type parameters
| Name | Type |
|---|---|
T | extends ZodTypeAny = ZodTypeAny |
Hierarchy
-
↳
ZodCatchDef
Table of contents
Properties
Properties
catchValue
• catchValue: (ctx: { error: ZodError<any> ; input: unknown }) => T["_input"]
Type declaration
▸ (ctx): T["_input"]
Parameters
| Name | Type |
|---|---|
ctx | Object |
ctx.error | ZodError<any> |
ctx.input | unknown |
Returns
T["_input"]
description
• Optional description: string
Inherited from
errorMap
• Optional errorMap: ZodErrorMap
Inherited from
innerType
• innerType: T
typeName
• typeName: ZodCatch