API ReferenceClassesz.ZodUndefined

title: Core.z. Zod Undefined

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

Class: ZodUndefined

Core.z.ZodUndefined

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

• new ZodUndefined(def): ZodUndefined

Parameters

NameType
defZodUndefinedDef

Returns

ZodUndefined

Inherited from

ZodType.constructor

Properties

_def

• Readonly _def: ZodUndefinedDef

Inherited from

ZodType._def


_input

• Readonly _input: undefined

Inherited from

ZodType._input


_output

• Readonly _output: undefined

Inherited from

ZodType._output


_type

• Readonly _type: undefined

Inherited from

ZodType._type


create

▪ Static create: (params?: RawCreateParams) => ZodUndefined

Type declaration

▸ (params?): ZodUndefined

Parameters
NameType
params?RawCreateParams
Returns

ZodUndefined


params

• Optional params: RawCreateParams


spa

• spa: (data: unknown, params?: InexactPartial<ParseParams>) => Promise<SafeParseReturnType<undefined, undefined>>

Alias of safeParseAsync

Type declaration

▸ (data, params?): Promise<SafeParseReturnType<undefined, undefined>>

Parameters
NameType
dataunknown
params?InexactPartial<ParseParams>
Returns

Promise<SafeParseReturnType<undefined, undefined>>

Inherited from

ZodType.spa


~standard

• ~standard: Props<undefined, undefined>

Inherited from

ZodType.~standard

Accessors

description

• get description(): undefined | string

Returns

undefined | string

Inherited from

ZodType.description

Methods

_getOrReturnCtx

▸ _getOrReturnCtx(input, ctx?): ParseContext

Parameters

NameType
inputParseInput
ctx?ParseContext

Returns

ParseContext

Inherited from

ZodType._getOrReturnCtx


_getType

▸ _getType(input): string

Parameters

NameType
inputParseInput

Returns

string

Inherited from

ZodType._getType


_parse

▸ _parse(input): ParseReturnType<undefined>

Parameters

NameType
inputParseInput

Returns

ParseReturnType<undefined>

Overrides

ZodType._parse


_parseAsync

▸ _parseAsync(input): AsyncParseReturnType<undefined>

Parameters

NameType
inputParseInput

Returns

AsyncParseReturnType<undefined>

Inherited from

ZodType._parseAsync


_parseSync

▸ _parseSync(input): SyncParseReturnType<undefined>

Parameters

NameType
inputParseInput

Returns

SyncParseReturnType<undefined>

Inherited from

ZodType._parseSync


_processInputParams

▸ _processInputParams(input): Object

Parameters

NameType
inputParseInput

Returns

Object

NameType
ctxParseContext
statusParseStatus

Inherited from

ZodType._processInputParams


_refinement

▸ _refinement(refinement): ZodEffects<ZodUndefined, undefined, undefined>

Parameters

NameType
refinement(arg: undefined, ctx: RefinementCtx) => any

Returns

ZodEffects<ZodUndefined, undefined, undefined>

Inherited from

ZodType._refinement


and

▸ and<T>(incoming): ZodIntersection<ZodUndefined, T>

Type parameters

NameType
Textends ZodTypeAny

Parameters

NameType
incomingT

Returns

ZodIntersection<ZodUndefined, T>

Inherited from

ZodType.and


array

▸ array(): ZodArray<ZodUndefined, "many">

Returns

ZodArray<ZodUndefined, "many">

Inherited from

ZodType.array


brand

▸ brand<B>(brand?): ZodBranded<ZodUndefined, B>

Type parameters

NameType
Bextends string | number | symbol

Parameters

NameType
brand?B

Returns

ZodBranded<ZodUndefined, B>

Inherited from

ZodType.brand


catch

▸ catch(def): ZodCatch<ZodUndefined>

Parameters

NameType
defundefined

Returns

ZodCatch<ZodUndefined>

Inherited from

ZodType.catch

▸ catch(def): ZodCatch<ZodUndefined>

Parameters

NameType
def(ctx: { error: ZodError<any> ; input: undefined }) => undefined

Returns

ZodCatch<ZodUndefined>

Inherited from

ZodType.catch


default

▸ default(def): ZodDefault<ZodUndefined>

Parameters

NameType
defnever

Returns

ZodDefault<ZodUndefined>

Inherited from

ZodType.default

▸ default(def): ZodDefault<ZodUndefined>

Parameters

NameType
def() => never

Returns

ZodDefault<ZodUndefined>

Inherited from

ZodType.default


describe

▸ describe(description): this

Parameters

NameType
descriptionstring

Returns

this

Inherited from

ZodType.describe


isNullable

▸ isNullable(): boolean

Returns

boolean

Inherited from

ZodType.isNullable


isOptional

▸ isOptional(): boolean

Returns

boolean

Inherited from

ZodType.isOptional


nullable

▸ nullable(): ZodNullable<ZodUndefined>

Returns

ZodNullable<ZodUndefined>

Inherited from

ZodType.nullable


nullish

▸ nullish(): ZodOptional<ZodNullable<ZodUndefined>>

Returns

ZodOptional<ZodNullable<ZodUndefined>>

Inherited from

ZodType.nullish


optional

▸ optional(): ZodOptional<ZodUndefined>

Returns

ZodOptional<ZodUndefined>

Inherited from

ZodType.optional


or

▸ or<T>(option): ZodUnion<[ZodUndefined, T]>

Type parameters

NameType
Textends ZodTypeAny

Parameters

NameType
optionT

Returns

ZodUnion<[ZodUndefined, T]>

Inherited from

ZodType.or


parse

▸ parse(data, params?): undefined

Parameters

NameType
dataunknown
params?InexactPartial<ParseParams>

Returns

undefined

Inherited from

ZodType.parse


parseAsync

▸ parseAsync(data, params?): Promise<undefined>

Parameters

NameType
dataunknown
params?InexactPartial<ParseParams>

Returns

Promise<undefined>

Inherited from

ZodType.parseAsync


pipe

▸ pipe<T>(target): ZodPipeline<ZodUndefined, T>

Type parameters

NameType
Textends ZodTypeAny

Parameters

NameType
targetT

Returns

ZodPipeline<ZodUndefined, T>

Inherited from

ZodType.pipe


promise

▸ promise(): ZodPromise<ZodUndefined>

Returns

ZodPromise<ZodUndefined>

Inherited from

ZodType.promise


readonly

▸ readonly(): ZodReadonly<ZodUndefined>

Returns

ZodReadonly<ZodUndefined>

Inherited from

ZodType.readonly


refine

▸ refine<RefinedOutput>(check, message?): ZodEffects<ZodUndefined, RefinedOutput, undefined>

Type parameters

NameType
RefinedOutputextends undefined

Parameters

NameType
check(arg: undefined) => arg is RefinedOutput
message?string | Partial<Omit<ZodCustomIssue, "code">> | (arg: undefined) => Partial<Omit<ZodCustomIssue, "code">>

Returns

ZodEffects<ZodUndefined, RefinedOutput, undefined>

Inherited from

ZodType.refine

▸ refine(check, message?): ZodEffects<ZodUndefined, undefined, undefined>

Parameters

NameType
check(arg: undefined) => unknown
message?string | Partial<Omit<ZodCustomIssue, "code">> | (arg: undefined) => Partial<Omit<ZodCustomIssue, "code">>

Returns

ZodEffects<ZodUndefined, undefined, undefined>

Inherited from

ZodType.refine


refinement

▸ refinement<RefinedOutput>(check, refinementData): ZodEffects<ZodUndefined, RefinedOutput, undefined>

Type parameters

NameType
RefinedOutputextends undefined

Parameters

NameType
check(arg: undefined) => arg is RefinedOutput
refinementDataIssueData | (arg: undefined, ctx: RefinementCtx) => IssueData

Returns

ZodEffects<ZodUndefined, RefinedOutput, undefined>

Inherited from

ZodType.refinement

▸ refinement(check, refinementData): ZodEffects<ZodUndefined, undefined, undefined>

Parameters

NameType
check(arg: undefined) => boolean
refinementDataIssueData | (arg: undefined, ctx: RefinementCtx) => IssueData

Returns

ZodEffects<ZodUndefined, undefined, undefined>

Inherited from

ZodType.refinement


safeParse

▸ safeParse(data, params?): SafeParseReturnType<undefined, undefined>

Parameters

NameType
dataunknown
params?InexactPartial<ParseParams>

Returns

SafeParseReturnType<undefined, undefined>

Inherited from

ZodType.safeParse


safeParseAsync

▸ safeParseAsync(data, params?): Promise<SafeParseReturnType<undefined, undefined>>

Parameters

NameType
dataunknown
params?InexactPartial<ParseParams>

Returns

Promise<SafeParseReturnType<undefined, undefined>>

Inherited from

ZodType.safeParseAsync


superRefine

▸ superRefine<RefinedOutput>(refinement): ZodEffects<ZodUndefined, RefinedOutput, undefined>

Type parameters

NameType
RefinedOutputextends undefined

Parameters

NameType
refinement(arg: undefined, ctx: RefinementCtx) => arg is RefinedOutput

Returns

ZodEffects<ZodUndefined, RefinedOutput, undefined>

Inherited from

ZodType.superRefine

▸ superRefine(refinement): ZodEffects<ZodUndefined, undefined, undefined>

Parameters

NameType
refinement(arg: undefined, ctx: RefinementCtx) => void

Returns

ZodEffects<ZodUndefined, undefined, undefined>

Inherited from

ZodType.superRefine

▸ superRefine(refinement): ZodEffects<ZodUndefined, undefined, undefined>

Parameters

NameType
refinement(arg: undefined, ctx: RefinementCtx) => Promise<void>

Returns

ZodEffects<ZodUndefined, undefined, undefined>

Inherited from

ZodType.superRefine


transform

▸ transform<NewOut>(transform): ZodEffects<ZodUndefined, NewOut, undefined>

Type parameters

Name
NewOut

Parameters

NameType
transform(arg: undefined, ctx: RefinementCtx) => NewOut | Promise<NewOut>

Returns

ZodEffects<ZodUndefined, NewOut, undefined>

Inherited from

ZodType.transform


~validate

▸ ~validate(data): Result<undefined> | Promise<Result<undefined>>

Parameters

NameType
dataunknown

Returns

Result<undefined> | Promise<Result<undefined>>

Inherited from

ZodType.~validate