Interface: ZodVoid
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:420
Extends
Properties
_def
_def:
$ZodVoidDef
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:10
Deprecated
Use .def instead.
Inherited from
_input
_input:
void
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:14
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
void
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:12
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodVoidInternals
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15
Inherited from
def
def:
$ZodVoidDef
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
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<void>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:29
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<void>>
Inherited from
type
type:
"void"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodVoid,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<ZodVoid, 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<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Returns
ZodArray<ZodVoid>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodVoid:$ZodBranded<ZodVoid,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 ? ZodVoid : $ZodBranded<ZodVoid, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54
Parameters
def
void
Returns
ZodCatch<ZodVoid>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55
Parameters
def
(ctx) => void
Returns
ZodCatch<ZodVoid>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18
Parameters
checks
...(CheckFn<void> | $ZodCheck<void>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:20
Parameters
def?
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):void
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31
Parameters
data
void
params?
Returns
void
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<void>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
void
params?
Returns
Promise<void>
Inherited from
default()
Call Signature
default(
def):ZodDefault<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46
Parameters
def
void
Returns
ZodDefault<ZodVoid>
Inherited from
Call Signature
default(
def):ZodDefault<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47
Parameters
def
() => void
Returns
ZodDefault<ZodVoid>
Inherited from
describe()
describe(
description):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:59
Returns a new instance that has been registered in z.globalRegistry with the specified description
Parameters
description
string
Returns
this
Inherited from
encode()
encode(
data,params?):void
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
void
params?
Returns
void
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<void>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:32
Parameters
data
void
params?
Returns
Promise<void>
Inherited from
exactOptional()
exactOptional():
ZodExactOptional<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:42
Returns
ZodExactOptional<ZodVoid>
Inherited from
isNullable()
isNullable():
boolean
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:81
Returns
boolean
Deprecated
Try safe-parsing null (this is what isNullable does internally):
const schema = z.string().nullable();
const isNullable = schema.safeParse(null).success; // true
Inherited from
isOptional()
isOptional():
boolean
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:72
Returns
boolean
Deprecated
Try safe-parsing undefined (this is what isOptional does internally):
const schema = z.string().optional();
const isOptional = schema.safeParse(undefined).success; // true
Inherited from
meta()
Call Signature
meta(): {[
key:string]:unknown;deprecated?:boolean;description?:string;id?:string;title?:string; } |undefined
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:62
Returns the metadata associated with this instance in z.globalRegistry
Returns
{[key: string]: unknown; deprecated?: boolean; description?: string; id?: string; title?: string; } | undefined
Inherited from
Call Signature
meta(
data):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:64
Returns a new instance that has been registered in z.globalRegistry with the specified metadata
Parameters
data
deprecated?
boolean
description?
string
id?
string
title?
string
Returns
this
Inherited from
nonoptional()
nonoptional(
params?):ZodNonOptional<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:43
Parameters
params?
string |
{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>; message?: string; }
error?
string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>
message?
string
Deprecated
This parameter is deprecated. Use error instead.
Returns
ZodNonOptional<ZodVoid>
Inherited from
nullable()
nullable():
ZodNullable<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:44
Returns
ZodNullable<ZodVoid>
Inherited from
nullish()
nullish():
ZodOptional<ZodNullable<ZodVoid>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45
Returns
ZodOptional<ZodNullable<ZodVoid>>
Inherited from
optional()
optional():
ZodOptional<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:41
Returns
ZodOptional<ZodVoid>
Inherited from
or()
or<
T>(option):ZodUnion<[ZodVoid,T]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:51
Type Parameters
T
T extends SomeType
Parameters
option
T
Returns
ZodUnion<[ZodVoid, T]>
Inherited from
overwrite()
overwrite(
fn):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:40
Parameters
fn
(x) => void
Returns
this
Inherited from
parse()
parse(
data,params?):void
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:25
Parameters
data
unknown
params?
Returns
void
Inherited from
parseAsync()
parseAsync(
data,params?):Promise<void>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:27
Parameters
data
unknown
params?
Returns
Promise<void>
Inherited from
pipe()
pipe<
T>(target):ZodPipe<ZodVoid,T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:56
Type Parameters
T
T extends $ZodType<any, void, $ZodTypeInternals<any, void>>
Parameters
target
T | $ZodType<any, void, $ZodTypeInternals<any, void>>
Returns
ZodPipe<ZodVoid, T>
Inherited from
prefault()
Call Signature
prefault(
def):ZodPrefault<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:48
Parameters
def
() => void
Returns
ZodPrefault<ZodVoid>
Inherited from
Call Signature
prefault(
def):ZodPrefault<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49
Parameters
def
void
Returns
ZodPrefault<ZodVoid>
Inherited from
readonly()
readonly():
ZodReadonly<ZodVoid>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:57
Returns
ZodReadonly<ZodVoid>
Inherited from
refine()
refine<
Ch>(check,params?):Chextends (arg) =>arg is R?ZodVoid&ZodType<R,void,$ZodTypeInternals<R,void>> :ZodVoid
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:38
Type Parameters
Ch
Ch extends (arg) => unknown