x/zod/types.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodNumber
extends ZodType<number, ZodNumberDef>
import { ZodNumber } from "https://deno.land/x/zod@v3.17.3/types.ts?s=ZodNumber";

Properties

readonly
isInt
[src]
readonly
maxValue
[src]
readonly
minValue
[src]
step[src]

Methods

protected
setLimit(
kind: "min" | "max",
value: number,
inclusive: boolean,
message?: string,
)
[src]
_addCheck(check: ZodNumberCheck)[src]
_parse(input: ParseInput): ParseReturnType<number>[src]
gt(value: number, message?: errorUtil.ErrMessage)[src]
gte(value: number, message?: errorUtil.ErrMessage)[src]
int(message?: errorUtil.ErrMessage)[src]
lt(value: number, message?: errorUtil.ErrMessage)[src]
lte(value: number, message?: errorUtil.ErrMessage)[src]
multipleOf(value: number, message?: errorUtil.ErrMessage)[src]
negative(message?: errorUtil.ErrMessage)[src]
nonnegative(message?: errorUtil.ErrMessage)[src]
nonpositive(message?: errorUtil.ErrMessage)[src]
positive(message?: errorUtil.ErrMessage)[src]

Static Properties

create: (params?: RawCreateParams) => ZodNumber[src]