Interface: ZodNonOptional<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:633
Extends
Type Parameters
T
Properties
_def
_def:
$ZodNonOptionalDef<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:10
Deprecated
Use .def instead.
Inherited from
_input
_input:
NoUndefined<input<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:14
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
NoUndefined<output<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:12
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodNonOptionalInternals
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:634
Overrides
def
def:
$ZodNonOptionalDef<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
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<NoUndefined<output<T>>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:29
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<NoUndefined<output<T>>>>
Inherited from
type
type:
"nonoptional"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodNonOptional<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<ZodNonOptional<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<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Returns
ZodArray<ZodNonOptional<T>>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodNonOptional<T> :$ZodBranded<ZodNonOptional<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 ? ZodNonOptional<T> : $ZodBranded<ZodNonOptional<T>, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54
Parameters
def
NoUndefined<output<T>>
Returns
ZodCatch<ZodNonOptional<T>>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55
Parameters
def
(ctx) => NoUndefined<output<T>>
Returns
ZodCatch<ZodNonOptional<T>>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18
Parameters
checks
...(CheckFn<NoUndefined<output<T>>> | $ZodCheck<NoUndefined<output<T>>>)[]
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?):NoUndefined<output<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31
Parameters
data
NoUndefined<input<T>>
params?
Returns
NoUndefined<output<T>>
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<NoUndefined<output<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
NoUndefined<input<T>>
params?
Returns
Promise<NoUndefined<output<T>>>
Inherited from
default()
Call Signature
default(
def):ZodDefault<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46
Parameters
def
NoUndefined<NoUndefined<output<T>>>
Returns
ZodDefault<ZodNonOptional<T>>
Inherited from
Call Signature
default(
def):ZodDefault<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47
Parameters
def
() => NoUndefined<NoUndefined<output<T>>>
Returns
ZodDefault<ZodNonOptional<T>>
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?):NoUndefined<input<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
NoUndefined<output<T>>
params?
Returns
NoUndefined<input<T>>
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<NoUndefined<input<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:32
Parameters
data
NoUndefined<output<T>>
params?
Returns
Promise<NoUndefined<input<T>>>
Inherited from
exactOptional()
exactOptional():
ZodExactOptional<ZodNonOptional<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:42
Returns
ZodExactOptional<ZodNonOptional<T>>
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