UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

15 lines 573 B
import { NumberValidator } from './numbers'; import type { FloatValidatorType, ValidationNames } from '../types'; // Export a function to create float validators export declare function float(): FloatValidator; export declare class FloatValidator extends NumberValidator implements FloatValidatorType { name: ValidationNames; constructor(); min(min: number): this; max(max: number): this; length(length: number): this; positive(): this; negative(): this; divisibleBy(divisor: number): this; custom(fn: (value: number) => boolean, message: string): this; }