UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

14 lines 636 B
import { BaseValidator } from './base'; import type { BigintValidatorType, ValidationNames } from '../types'; export declare function bigint(): BigintValidator; export declare class BigintValidator extends BaseValidator<bigint> implements BigintValidatorType { name: ValidationNames; constructor(); min(min: bigint): BigintValidatorType; max(max: bigint): BigintValidatorType; length(length: number): BigintValidatorType; positive(): BigintValidatorType; negative(): BigintValidatorType; divisibleBy(divisor: bigint): BigintValidatorType; custom(fn: (value: bigint) => boolean, message: string): BigintValidatorType; }