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

x/zod/external.ts>ZodBigInt

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

Properties

max
readonly
maxValue
min
readonly
minValue

Methods

protected
setLimit(
kind: "min" | "max",
value: bigint,
inclusive: boolean,
message?: string,
)
_addCheck(check: ZodBigIntCheck)
_parse(input: ParseInput): ParseReturnType<bigint>
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