Skip to content

Function.bigint

github-actions[bot] edited this page Jul 8, 2026 · 30 revisions

umt / bigint

Function: bigint()

bigint<T>(option?, message?): (value) => BigIntReturnType & StandardSchemaV1<bigint, bigint>

Defined in: Validate/bigint/core.ts:31

Creates a bigint validator with optional validation rules

Type Parameters

T

T extends ValidateReturnType<bigint>[]

Array of validation rules for bigints

Parameters

option?

T = ...

Array of validation functions to apply

message?

string

Custom error message for type validation

Returns

(value) => BigIntReturnType & StandardSchemaV1<bigint, bigint>

  • Validator function that checks if the value is a bigint and applies validation rules

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally