Interface: ZodXor<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:499
Extends
_ZodType<$ZodXorInternals<T>>.$ZodXor<T>
Type Parameters
T
T extends readonly SomeType[] = readonly $ZodType[]
Properties
_def
_def:
$ZodUnionDef<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:10
Deprecated
Use .def instead.
Inherited from
_input
_input:
$InferUnionInput<T[number]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:14
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
$InferUnionOutput<T[number]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:12
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodXorInternals
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<ZodXor<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:500
Overrides
def
def:
$ZodUnionDef<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:7
Inherited from
description?
optionaldescription:string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:60
Inherited from
options
options:
T
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:501
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<$InferUnionOutput<T[number]>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:29
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<$InferUnionOutput<T[number]>>>
Inherited from
type
type:
"union"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodXor<T>,T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:52
Type Parameters
T
T extends SomeType
Parameters
incoming
T
Returns
ZodIntersection<ZodXor<T>, T>
Inherited from
apply()
apply<
T>(fn):T
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:82
Type Parameters
T
T
Parameters
fn
(schema) => T
Returns
T
Inherited from
array()
array():
ZodArray<ZodXor<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Returns
ZodArray<ZodXor<T>>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodXor<T> :$ZodBranded<ZodXor<T>,T,Dir>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:24
Type Parameters
T
T extends PropertyKey = PropertyKey
Dir
Dir extends "inout" | "in" | "out" = "out"
Parameters
value?
T
Returns
PropertyKey extends T ? ZodXor<T> : $ZodBranded<ZodXor<T>, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodXor<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54
Parameters
def
$InferUnionOutput<T[number]>
Returns
ZodCatch<ZodXor<T>>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodXor<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55
Parameters
def
(ctx) => $InferUnionOutput<T[number]>
Returns
ZodCatch<ZodXor<T>>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18
Parameters
checks
...(CheckFn<$InferUnionOutput<T[number]>> | $ZodCheck<$InferUnionOutput<T[number]>>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:20
Parameters
def?
$ZodUnionDef<T>
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):$InferUnionOutput<T[number]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31
Parameters
data
$InferUnionInput<T[number]>
params?
Returns
$InferUnionOutput<T[number]>
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<$InferUnionOutput<T[number]>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33