Interface: _ZodBoolean<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:390
Extends
_ZodType<T>
Extended by
Type Parameters
T
T extends $ZodBooleanInternals = $ZodBooleanInternals
Properties
_def
_def:
T["def"]
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:11
Deprecated
Use .def instead.
Inherited from
_input
_input:
T["input"]
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
T["output"]
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:13
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
T
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:111
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:16
Inherited from
def
def:
T["def"]
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
description?
optionaldescription:string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:63
Inherited from
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<output<_ZodBoolean<T>>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<output<_ZodBoolean<T>>>>
Inherited from
type
type:
T["def"]["type"]
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:9
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<_ZodBoolean<T>,T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55
Type Parameters
T
T extends SomeType
Parameters
incoming
T
Returns
ZodIntersection<_ZodBoolean<T>, T>
Inherited from
apply()
apply<
T,TArgs>(fn, ...args):T
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:85
Type Parameters
T
T
TArgs
TArgs extends unknown[] = []
Parameters
fn
(schema, ...args) => T
args
...TArgs
Returns
T
Inherited from
array()
array():
ZodArray<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:53
Returns
ZodArray<_ZodBoolean<T>>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?_ZodBoolean<T> :$ZodBranded<_ZodBoolean<T>,T,Dir>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:25
Type Parameters
T
T extends PropertyKey = PropertyKey
Dir
Dir extends "inout" | "in" | "out" = "out"
Parameters
value?
T
Returns
PropertyKey extends T ? _ZodBoolean<T> : $ZodBranded<_ZodBoolean<T>, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:57
Parameters
def
output<_ZodBoolean<T>>
Returns
ZodCatch<_ZodBoolean<T>>
Inherited from
Call Signature
catch(
def):ZodCatch<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:58
Parameters
def
(ctx) => output<_ZodBoolean<T>>
Returns
ZodCatch<_ZodBoolean<T>>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:19
Parameters
checks
...(CheckFn<output<_ZodBoolean<T>>> | $ZodCheck<output<_ZodBoolean<T>>>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:21
Parameters
def?
T["def"]
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):output<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:34
Parameters
data
input<_ZodBoolean<T>>
params?
Returns
output<_ZodBoolean<T>>
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<output<_ZodBoolean<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:36
Parameters
data
input<_ZodBoolean<T>>
params?
Returns
Promise<output<_ZodBoolean<T>>>
Inherited from
default()
Call Signature
default(
def):ZodDefault<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49
Parameters
def
NoUndefined<output<_ZodBoolean<T>>>
Returns
ZodDefault<_ZodBoolean<T>>
Inherited from
Call Signature
default(
def):ZodDefault<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Parameters
def
() => NoUndefined<output<_ZodBoolean<T>>>
Returns
ZodDefault<_ZodBoolean<T>>
Inherited from
describe()
describe(
description):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:62
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?):input<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
output<_ZodBoolean<T>>
params?
Returns
input<_ZodBoolean<T>>
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<input<_ZodBoolean<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:35
Parameters
data
output<_ZodBoolean<T>>
params?
Returns
Promise<input<_ZodBoolean<T>>>
Inherited from
exactOptional()
exactOptional():
ZodExactOptional<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45
Returns
ZodExactOptional<_ZodBoolean<T>>
Inherited from
isNullable()
isNullable():
boolean
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:84
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:75
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:65
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:67
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<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46
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<_ZodBoolean<T>>
Inherited from
nullable()
nullable():
ZodNullable<_ZodBoolean<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47