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

x/pup/deps.ts>z.ZodNumber

Universal process manager built in Deno
Go to Latest
class z.ZodNumber
extends ZodType<number, ZodNumberDef>
import { z } from "https://deno.land/x/pup@1.0.0-rc.5/deps.ts";
const { ZodNumber } = z;

Properties

readonly
isFinite
readonly
isInt
max
readonly
maxValue
min
readonly
minValue
step

Methods

protected
setLimit(
kind: "min" | "max",
value: number,
inclusive: boolean,
message?: string,
)
finite(message?: errorUtil.ErrMessage)
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)
safe(message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams & { coerce?: boolean; }) => ZodNumber