Module

x/zod/index.ts>z.ZodBigInt

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

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