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