Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ZodBigInt

import { ZodBigInt } from "https://esm.sh/zod@3.25.76/index.d.cts";
class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {
max: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
min: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
get minValue(): bigint | null;
get maxValue(): bigint | null;
 
protected setLimit(
kind: "min" | "max",
value: bigint,
inclusive: boolean,
message?: string,
): ZodBigInt;
_addCheck(check: ZodBigIntCheck): ZodBigInt;
_getInvalidInput(input: ParseInput): INVALID;
_parse(input: ParseInput): ParseReturnType<bigint>;
gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
negative(message?: errorUtil.ErrMessage): ZodBigInt;
nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;
nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;
positive(message?: errorUtil.ErrMessage): ZodBigInt;
 
static create: (params?: RawCreateParams & {
coerce?: boolean;
}
) => ZodBigInt
;
}

§Extends

§
ZodType<bigint, ZodBigIntDef, bigint>
[src]

§Properties

§
max: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt
[src]
§
min: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt
[src]
§
minValue: bigint | null readonly
[src]
§
maxValue: bigint | null readonly
[src]

§Methods

§
setLimit(kind: "min" | "max", value: bigint, inclusive: boolean, message?: string): ZodBigInt protected
[src]
§
_addCheck(check: ZodBigIntCheck): ZodBigInt
[src]
§
_getInvalidInput(input: ParseInput): INVALID
[src]
§
_parse(input: ParseInput): ParseReturnType<bigint>
[src]
§
gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
nonnegative(message?: errorUtil.ErrMessage): ZodBigInt
[src]
§
nonpositive(message?: errorUtil.ErrMessage): ZodBigInt
[src]

§Static Properties

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