import { z } from "https://dotland.deno.dev/x/zod@v3.19.1/index.ts";
const { ZodNumber } = z;
Methods
protected
setLimit(kind: "min" | "max",
value: number,
inclusive: boolean,
message?: string,
_addCheck(check: ZodNumberCheck)
_parse(input: ParseInput): ParseReturnType<number>
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