@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
8 lines (7 loc) • 417 B
TypeScript
import type { LengthValidator, Validator } from './base';
export declare interface SmallintValidatorType extends Validator<number>, LengthValidator<SmallintValidatorType> {
positive: () => SmallintValidatorType
negative: () => SmallintValidatorType
divisibleBy: (divisor: number) => SmallintValidatorType
custom: (fn: (value: number | null | undefined) => boolean, message: string) => SmallintValidatorType
}