Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/test/test_deps.ts>zod.z.ZodNumber

A server framework for Deno
Go to Latest
class zod.z.ZodNumber
extends ZodType<number, ZodNumberDef>
import { zod } from "https://deno.land/x/cav@0.0.24/test/test_deps.ts";
const { ZodNumber } = zod.z;

Properties

readonly
isInt
max
readonly
maxValue
min
readonly
minValue
step

Methods

protected
setLimit(
kind: "min" | "max",
value: number,
inclusive: boolean,
message?: string,
)
_addCheck(check: ZodNumberCheck)
gt(value: number, message?: errorUtil.ErrMessage)
gte(value: number, message?: errorUtil.ErrMessage)
int(message?: errorUtil.ErrMessage)
lt(value: number, message?: errorUtil.ErrMessage)
lte(value: number, message?: errorUtil.ErrMessage)
multipleOf(value: number, message?: errorUtil.ErrMessage)
negative(message?: errorUtil.ErrMessage)
nonnegative(message?: errorUtil.ErrMessage)
nonpositive(message?: errorUtil.ErrMessage)
positive(message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams) => ZodNumber