Skip to main content

Interface: _ZodNumber<Internals>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:307

Extends

Extended by

Type Parameters

Internals

Internals extends $ZodNumberInternals = $ZodNumberInternals

Properties

_def

_def: Internals["def"]

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:10

Deprecated

Use .def instead.

Inherited from

_ZodType._def


_input

_input: Internals["input"]

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:14

Deprecated

Use z.input<typeof schema> instead.

Inherited from

_ZodType._input


_output

_output: Internals["output"]

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:12

Deprecated

Use z.output<typeof schema> instead.

Inherited from

_ZodType._output


_zod

_zod: Internals

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93

Inherited from

_ZodType._zod


~standard

~standard: ZodStandardSchemaWithJSON<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15

Inherited from

_ZodType.~standard


def

def: Internals["def"]

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:7

Inherited from

_ZodType.def


description?

optional description: string

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:60

Inherited from

_ZodType.description


format

format: string | null

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:335


isFinite

isFinite: boolean

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:334

Deprecated

Number schemas no longer accept infinite values, so this always returns true.


isInt

isInt: boolean

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:332

Deprecated

Check the format property instead.


maxValue

maxValue: number | null

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:330


minValue

minValue: number | null

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:329


spa()

spa: (data, params?) => Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:29

Parameters

data

unknown

params?

ParseContext<$ZodIssue>

Returns

Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Inherited from

_ZodType.spa


type

type: Internals["def"]["type"]

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8

Inherited from

_ZodType.type

Methods

and()

and<T>(incoming): ZodIntersection<_ZodNumber<Internals>, 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<_ZodNumber<Internals>, T>

Inherited from

_ZodType.and


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

_ZodType.apply


array()

array(): ZodArray<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50

Returns

ZodArray<_ZodNumber<Internals>>

Inherited from

_ZodType.array


brand()

brand<T, Dir>(value?): PropertyKey extends T ? _ZodNumber<Internals> : $ZodBranded<_ZodNumber<Internals>, 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 ? _ZodNumber<Internals> : $ZodBranded<_ZodNumber<Internals>, T, Dir>

Inherited from

_ZodType.brand


catch()

Call Signature

catch(def): ZodCatch<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54

Parameters
def

output<_ZodNumber<Internals>>

Returns

ZodCatch<_ZodNumber<Internals>>

Inherited from

_ZodType.catch

Call Signature

catch(def): ZodCatch<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55

Parameters
def

(ctx) => output<_ZodNumber<Internals>>

Returns

ZodCatch<_ZodNumber<Internals>>

Inherited from

_ZodType.catch


check()

check(...checks): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18

Parameters

checks

...(CheckFn<output<_ZodNumber<Internals>>> | $ZodCheck<output<_ZodNumber<Internals>>>)[]

Returns

this

Inherited from

_ZodType.check


clone()

clone(def?, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:20

Parameters

def?

Internals["def"]

params?
parent

boolean

Returns

this

Inherited from

_ZodType.clone


decode()

decode(data, params?): output<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31

Parameters

data

input<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

output<_ZodNumber<Internals>>

Inherited from

_ZodType.decode


decodeAsync()

decodeAsync(data, params?): Promise<output<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33

Parameters

data

input<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

Promise<output<_ZodNumber<Internals>>>

Inherited from

_ZodType.decodeAsync


default()

Call Signature

default(def): ZodDefault<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46

Parameters
def

NoUndefined<output<_ZodNumber<Internals>>>

Returns

ZodDefault<_ZodNumber<Internals>>

Inherited from

_ZodType.default

Call Signature

default(def): ZodDefault<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47

Parameters
def

() => NoUndefined<output<_ZodNumber<Internals>>>

Returns

ZodDefault<_ZodNumber<Internals>>

Inherited from

_ZodType.default


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

_ZodType.describe


encode()

encode(data, params?): input<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30

Parameters

data

output<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

input<_ZodNumber<Internals>>

Inherited from

_ZodType.encode


encodeAsync()

encodeAsync(data, params?): Promise<input<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:32

Parameters

data

output<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

Promise<input<_ZodNumber<Internals>>>

Inherited from

_ZodType.encodeAsync


exactOptional()

exactOptional(): ZodExactOptional<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:42

Returns

ZodExactOptional<_ZodNumber<Internals>>

Inherited from

_ZodType.exactOptional


finite()

finite(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:328

Parameters

params?

unknown

Returns

this

Deprecated

In v4 and later, z.number() does not allow infinite values by default. This is a no-op.


gt()

gt(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:308

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


gte()

gte(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:310

Identical to .min()

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


int()

int(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:317

Consider z.int() instead. This API is considered legacy; it will never be removed but a better alternative exists.

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


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

_ZodType.isNullable


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

_ZodType.isOptional


lt()

lt(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:312

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


lte()

lte(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:314

Identical to .max()

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


max()

max(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:315

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


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

_ZodType.meta

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

_ZodType.meta


min()

min(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:311

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


multipleOf()

multipleOf(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:324

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


negative()

negative(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:322

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


nonnegative()

nonnegative(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:321

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


nonoptional()

nonoptional(params?): ZodNonOptional<_ZodNumber<Internals>>

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<_ZodNumber<Internals>>

Inherited from

_ZodType.nonoptional


nonpositive()

nonpositive(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:323

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


nullable()

nullable(): ZodNullable<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:44

Returns

ZodNullable<_ZodNumber<Internals>>

Inherited from

_ZodType.nullable


nullish()

nullish(): ZodOptional<ZodNullable<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45

Returns

ZodOptional<ZodNullable<_ZodNumber<Internals>>>

Inherited from

_ZodType.nullish


optional()

optional(): ZodOptional<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:41

Returns

ZodOptional<_ZodNumber<Internals>>

Inherited from

_ZodType.optional


or()

or<T>(option): ZodUnion<[_ZodNumber<Internals>, 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<[_ZodNumber<Internals>, T]>

Inherited from

_ZodType.or


overwrite()

overwrite(fn): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:40

Parameters

fn

(x) => output<_ZodNumber<Internals>>

Returns

this

Inherited from

_ZodType.overwrite


parse()

parse(data, params?): output<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:25

Parameters

data

unknown

params?

ParseContext<$ZodIssue>

Returns

output<_ZodNumber<Internals>>

Inherited from

_ZodType.parse


parseAsync()

parseAsync(data, params?): Promise<output<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:27

Parameters

data

unknown

params?

ParseContext<$ZodIssue>

Returns

Promise<output<_ZodNumber<Internals>>>

Inherited from

_ZodType.parseAsync


pipe()

pipe<T>(target): ZodPipe<_ZodNumber<Internals>, T>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:56

Type Parameters

T

T extends $ZodType<any, output<_ZodNumber<Internals>>, $ZodTypeInternals<any, output<_ZodNumber<Internals>>>>

Parameters

target

T | $ZodType<any, output<_ZodNumber<Internals>>, $ZodTypeInternals<any, output<_ZodNumber<Internals>>>>

Returns

ZodPipe<_ZodNumber<Internals>, T>

Inherited from

_ZodType.pipe


positive()

positive(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:320

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this


prefault()

Call Signature

prefault(def): ZodPrefault<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:48

Parameters
def

() => input<_ZodNumber<Internals>>

Returns

ZodPrefault<_ZodNumber<Internals>>

Inherited from

_ZodType.prefault

Call Signature

prefault(def): ZodPrefault<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49

Parameters
def

input<_ZodNumber<Internals>>

Returns

ZodPrefault<_ZodNumber<Internals>>

Inherited from

_ZodType.prefault


readonly()

readonly(): ZodReadonly<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:57

Returns

ZodReadonly<_ZodNumber<Internals>>

Inherited from

_ZodType.readonly


refine()

refine<Ch>(check, params?): Ch extends (arg) => arg is R ? _ZodNumber<Internals> & ZodType<R, input<_ZodNumber<Internals>>, $ZodTypeInternals<R, input<_ZodNumber<Internals>>>> : _ZodNumber<Internals>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:38

Type Parameters

Ch

Ch extends (arg) => unknown

Parameters

check

Ch

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssue>>; message?: string; params?: Record<string, any>; path?: PropertyKey[]; when?: (payload) => boolean; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<NonNullable<$ZodIssue>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

params?

Record<string, any>

path?

PropertyKey[]

when?

(payload) => boolean

If provided, the check runs only when this returns true. By default, it is skipped if prior parsing produced aborting issues.

Returns

Ch extends (arg) => arg is R ? _ZodNumber<Internals> & ZodType<R, input<_ZodNumber<Internals>>, $ZodTypeInternals<R, input<_ZodNumber<Internals>>>> : _ZodNumber<Internals>

Inherited from

_ZodType.refine


register()

register<R>(registry, ...meta): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:23

Type Parameters

R

R extends $ZodRegistry<MetadataType, $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>

Parameters

registry

R

meta

..._ZodNumber<Internals> extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], R["_schema"] & _ZodNumber<Internals>>?] : [$replace<R["_meta"], R["_schema"] & _ZodNumber<Internals>>] : ["Incompatible schema"]

Returns

this

Inherited from

_ZodType.register


safe()

safe(params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:319

Parameters

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this

Deprecated

This is now identical to .int(). Only numbers in the safe integer range are accepted.


safeDecode()

safeDecode(data, params?): ZodSafeParseResult<output<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:35

Parameters

data

input<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

ZodSafeParseResult<output<_ZodNumber<Internals>>>

Inherited from

_ZodType.safeDecode


safeDecodeAsync()

safeDecodeAsync(data, params?): Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:37

Parameters

data

input<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Inherited from

_ZodType.safeDecodeAsync


safeEncode()

safeEncode(data, params?): ZodSafeParseResult<input<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:34

Parameters

data

output<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

ZodSafeParseResult<input<_ZodNumber<Internals>>>

Inherited from

_ZodType.safeEncode


safeEncodeAsync()

safeEncodeAsync(data, params?): Promise<ZodSafeParseResult<input<_ZodNumber<Internals>>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:36

Parameters

data

output<_ZodNumber<Internals>>

params?

ParseContext<$ZodIssue>

Returns

Promise<ZodSafeParseResult<input<_ZodNumber<Internals>>>>

Inherited from

_ZodType.safeEncodeAsync


safeParse()

safeParse(data, params?): ZodSafeParseResult<output<_ZodNumber<Internals>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:26

Parameters

data

unknown

params?

ParseContext<$ZodIssue>

Returns

ZodSafeParseResult<output<_ZodNumber<Internals>>>

Inherited from

_ZodType.safeParse


safeParseAsync()

safeParseAsync(data, params?): Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:28

Parameters

data

unknown

params?

ParseContext<$ZodIssue>

Returns

Promise<ZodSafeParseResult<output<_ZodNumber<Internals>>>>

Inherited from

_ZodType.safeParseAsync


step()

step(value, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:326

Parameters

value

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

this

Deprecated

Use .multipleOf() instead.


superRefine()

superRefine(refinement, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:39

Parameters

refinement

(arg, ctx) => void | Promise<void>

params?

$ZodSuperRefineParams

Returns

this

Inherited from

_ZodType.superRefine


toJSONSchema()

toJSONSchema(params?): ZodStandardJSONSchemaPayload<_ZodNumber<Internals>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:17

Converts this schema to a JSON Schema representation.

Parameters

params?

ToJSONSchemaParams

Returns

ZodStandardJSONSchemaPayload<_ZodNumber<Internals>>

Inherited from

_ZodType.toJSONSchema


transform()

transform<NewOut>(transform): ZodPipe<_ZodNumber<Internals>, ZodTransform<Awaited<NewOut>, output<_ZodNumber<Internals>>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:53

Type Parameters

NewOut

NewOut

Parameters

transform

(arg, ctx) => NewOut | Promise<NewOut>

Returns

ZodPipe<_ZodNumber<Internals>, ZodTransform<Awaited<NewOut>, output<_ZodNumber<Internals>>>>

Inherited from

_ZodType.transform


with()

with(...checks): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:19

Parameters

checks

...(CheckFn<output<_ZodNumber<Internals>>> | $ZodCheck<output<_ZodNumber<Internals>>>)[]

Returns

this

Inherited from

_ZodType.with