@morojs/moro / z / _ZodNumber
Interface: _ZodNumber<Internals>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:271
Extends
_ZodType
<Internals
>
Extended by
Type Parameters
Internals
Internals
extends $ZodNumberInternals
= $ZodNumberInternals
Properties
~~_def~~
_def:
Internals
["def"
]
Defined in: node_modules/zod/v4/classic/schemas.d.cts:8
Deprecated
Use .def
instead.
Inherited from
~~_input~~
_input:
Internals
["input"
]
Defined in: node_modules/zod/v4/classic/schemas.d.cts:12
Deprecated
Use z.input<typeof schema>
instead.
Inherited from
~~_output~~
_output:
Internals
["output"
]
Defined in: node_modules/zod/v4/classic/schemas.d.cts:10
Deprecated
Use z.output<typeof schema>
instead.
Inherited from
_zod
_zod:
Internals
Defined in: node_modules/zod/v4/core/schemas.d.cts:89
Inherited from
~standard
~standard:
$ZodStandardSchema
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/core/schemas.d.cts:90
Inherited from
def
def:
Internals
["def"
]
Defined in: node_modules/zod/v4/classic/schemas.d.cts:5
Inherited from
description?
optional
description:string
Defined in: node_modules/zod/v4/classic/schemas.d.cts:53
Inherited from
format
format:
null
|string
Defined in: node_modules/zod/v4/classic/schemas.d.cts:299
~~isFinite~~
isFinite:
boolean
Defined in: node_modules/zod/v4/classic/schemas.d.cts:298
Deprecated
Number schemas no longer accept infinite values, so this always returns true
.
~~isInt~~
isInt:
boolean
Defined in: node_modules/zod/v4/classic/schemas.d.cts:296
Deprecated
Check the format
property instead.
maxValue
maxValue:
null
|number
Defined in: node_modules/zod/v4/classic/schemas.d.cts:294
minValue
minValue:
null
|number
Defined in: node_modules/zod/v4/classic/schemas.d.cts:293
spa()
spa: (
data
,params?
) =>Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:23
Parameters
data
unknown
params?
Returns
Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Inherited from
type
type:
Internals
["def"
]["type"
]
Defined in: node_modules/zod/v4/classic/schemas.d.cts:6
Inherited from
Methods
and()
and<
T
>(incoming
):ZodIntersection
<_ZodNumber
<Internals
>,T
>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:45
Type Parameters
T
T
extends SomeType
Parameters
incoming
T
Returns
ZodIntersection
<_ZodNumber
<Internals
>, T
>
Inherited from
array()
array():
ZodArray
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:43
Returns
ZodArray
<_ZodNumber
<Internals
>>
Inherited from
brand()
brand<
T
>(value?
):PropertyKey
extendsT
?_ZodNumber
<Internals
> :$ZodBranded
<_ZodNumber
<Internals
>,T
>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:18
Type Parameters
T
T
extends PropertyKey
= PropertyKey
Parameters
value?
T
Returns
PropertyKey
extends T
? _ZodNumber
<Internals
> : $ZodBranded
<_ZodNumber
<Internals
>, T
>
Inherited from
catch()
Call Signature
catch(
def
):ZodCatch
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:47
Parameters
def
output
<_ZodNumber
<Internals
>>
Returns
ZodCatch
<_ZodNumber
<Internals
>>
Inherited from
Call Signature
catch(
def
):ZodCatch
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:48
Parameters
def
(ctx
) => output
<_ZodNumber
<Internals
>>
Returns
ZodCatch
<_ZodNumber
<Internals
>>
Inherited from
check()
check(...
checks
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:13
Parameters
checks
...(CheckFn
<output
<_ZodNumber
<Internals
>>> | $ZodCheck
<output
<_ZodNumber
<Internals
>>>)[]
Returns
this
Inherited from
clone()
clone(
def?
,params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:14
Parameters
def?
Internals
["def"
]
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data
,params?
):output
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:25
Parameters
data
input
<_ZodNumber
<Internals
>>
params?
Returns
output
<_ZodNumber
<Internals
>>
Inherited from
decodeAsync()
decodeAsync(
data
,params?
):Promise
<output
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:27
Parameters
data
input
<_ZodNumber
<Internals
>>
params?
Returns
Promise
<output
<_ZodNumber
<Internals
>>>
Inherited from
default()
Call Signature
default(
def
):ZodDefault
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:39
Parameters
def
output
<_ZodNumber
<Internals
>>
Returns
ZodDefault
<_ZodNumber
<Internals
>>
Inherited from
Call Signature
default(
def
):ZodDefault
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:40
Parameters
def
() => NoUndefined
<output
<_ZodNumber
<Internals
>>>
Returns
ZodDefault
<_ZodNumber
<Internals
>>
Inherited from
describe()
describe(
description
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:52
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
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:24
Parameters
data
output
<_ZodNumber
<Internals
>>
params?
Returns
input
<_ZodNumber
<Internals
>>
Inherited from
encodeAsync()
encodeAsync(
data
,params?
):Promise
<input
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:26
Parameters
data
output
<_ZodNumber
<Internals
>>
params?
Returns
Promise
<input
<_ZodNumber
<Internals
>>>
Inherited from
~~finite()~~
finite(
params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:292
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: node_modules/zod/v4/classic/schemas.d.cts:272
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: node_modules/zod/v4/classic/schemas.d.cts:274
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: node_modules/zod/v4/classic/schemas.d.cts:281
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: node_modules/zod/v4/classic/schemas.d.cts:74
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: node_modules/zod/v4/classic/schemas.d.cts:65
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
lt()
lt(
value
,params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:276
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: node_modules/zod/v4/classic/schemas.d.cts:278
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: node_modules/zod/v4/classic/schemas.d.cts:279
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():
undefined
| {[key
:string
]:unknown
;deprecated?
:boolean
;description?
:string
;id?
:string
;title?
:string
; }
Defined in: node_modules/zod/v4/classic/schemas.d.cts:55
Returns the metadata associated with this instance in z.globalRegistry
Returns
undefined
| {[key
: string
]: unknown
; deprecated?
: boolean
; description?
: string
; id?
: string
; title?
: string
; }
Inherited from
Call Signature
meta(
data
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:57
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
min()
min(
value
,params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:275
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: node_modules/zod/v4/classic/schemas.d.cts:288
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: node_modules/zod/v4/classic/schemas.d.cts:286
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: node_modules/zod/v4/classic/schemas.d.cts:285
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: node_modules/zod/v4/classic/schemas.d.cts:36
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
nonpositive()
nonpositive(
params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:287
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: node_modules/zod/v4/classic/schemas.d.cts:37
Returns
ZodNullable
<_ZodNumber
<Internals
>>
Inherited from
nullish()
nullish():
ZodOptional
<ZodNullable
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:38
Returns
ZodOptional
<ZodNullable
<_ZodNumber
<Internals
>>>
Inherited from
optional()
optional():
ZodOptional
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:35
Returns
ZodOptional
<_ZodNumber
<Internals
>>
Inherited from
or()
or<
T
>(option
):ZodUnion
<[_ZodNumber
<Internals
>,T
]>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:44
Type Parameters
T
T
extends SomeType
Parameters
option
T
Returns
ZodUnion
<[_ZodNumber
<Internals
>, T
]>
Inherited from
overwrite()
overwrite(
fn
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:34
Parameters
fn
(x
) => output
<_ZodNumber
<Internals
>>
Returns
this
Inherited from
parse()
parse(
data
,params?
):output
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:19
Parameters
data
unknown
params?
Returns
output
<_ZodNumber
<Internals
>>
Inherited from
parseAsync()
parseAsync(
data
,params?
):Promise
<output
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:21
Parameters
data
unknown
params?
Returns
Promise
<output
<_ZodNumber
<Internals
>>>
Inherited from
pipe()
pipe<
T
>(target
):ZodPipe
<_ZodNumber
<Internals
>,T
>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:49
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
positive()
positive(
params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:284
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: node_modules/zod/v4/classic/schemas.d.cts:41
Parameters
def
() => input
<_ZodNumber
<Internals
>>
Returns
ZodPrefault
<_ZodNumber
<Internals
>>
Inherited from
Call Signature
prefault(
def
):ZodPrefault
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:42
Parameters
def
input
<_ZodNumber
<Internals
>>
Returns
ZodPrefault
<_ZodNumber
<Internals
>>
Inherited from
readonly()
readonly():
ZodReadonly
<_ZodNumber
<Internals
>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:50
Returns
ZodReadonly
<_ZodNumber
<Internals
>>
Inherited from
refine()
refine(
check
,params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:32
Parameters
check
(arg
) => unknown
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, this check will only be executed if the function returns true
. Defaults to payload => z.util.isAborted(payload)
.
Returns
this
Inherited from
register()
register<
R
>(registry
, ...meta
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:17
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
~~safe()~~
safe(
params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:283
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: node_modules/zod/v4/classic/schemas.d.cts:29
Parameters
data
input
<_ZodNumber
<Internals
>>
params?
Returns
ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>
Inherited from
safeDecodeAsync()
safeDecodeAsync(
data
,params?
):Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:31
Parameters
data
input
<_ZodNumber
<Internals
>>
params?
Returns
Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Inherited from
safeEncode()
safeEncode(
data
,params?
):ZodSafeParseResult
<input
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:28
Parameters
data
output
<_ZodNumber
<Internals
>>
params?
Returns
ZodSafeParseResult
<input
<_ZodNumber
<Internals
>>>
Inherited from
safeEncodeAsync()
safeEncodeAsync(
data
,params?
):Promise
<ZodSafeParseResult
<input
<_ZodNumber
<Internals
>>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
output
<_ZodNumber
<Internals
>>
params?
Returns
Promise
<ZodSafeParseResult
<input
<_ZodNumber
<Internals
>>>>
Inherited from
safeParse()
safeParse(
data
,params?
):ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:20
Parameters
data
unknown
params?
Returns
ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>
Inherited from
safeParseAsync()
safeParseAsync(
data
,params?
):Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:22
Parameters
data
unknown
params?
Returns
Promise
<ZodSafeParseResult
<output
<_ZodNumber
<Internals
>>>>
Inherited from
~~step()~~
step(
value
,params?
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:290
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
):this
Defined in: node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
refinement
(arg
, ctx
) => void
| Promise
<void
>
Returns
this
Inherited from
transform()
transform<
NewOut
>(transform
):ZodPipe
<_ZodNumber
<Internals
>,ZodTransform
<Awaited
<NewOut
>,output
<_ZodNumber
<Internals
>>>>
Defined in: node_modules/zod/v4/classic/schemas.d.cts:46
Type Parameters
NewOut
NewOut
Parameters
transform
(arg
, ctx
) => NewOut
| Promise
<NewOut
>
Returns
ZodPipe
<_ZodNumber
<Internals
>, ZodTransform
<Awaited
<NewOut
>, output
<_ZodNumber
<Internals
>>>>