Skip to content

Function.bigint

github-actions[bot] edited this page May 13, 2026 · 30 revisions

umt / bigint

Function: bigint()

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

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

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

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

(value) => BigIntReturnType

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally