Module

x/zod/mod.ts>ZodBigInt

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodBigInt
extends ZodType<bigint, ZodBigIntDef, bigint>
import { ZodBigInt } from "https://dotland.deno.dev/x/zod@v3.23.7/mod.ts";

Properties

max
readonly
maxValue
min
readonly
minValue

Methods

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

Static Properties

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