UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

8 lines (7 loc) 411 B
import type { LengthValidator, Validator } from './base'; export declare interface DecimalValidatorType extends Validator<number>, LengthValidator<DecimalValidatorType> { positive: () => DecimalValidatorType negative: () => DecimalValidatorType divisibleBy: (divisor: number) => DecimalValidatorType custom: (fn: (value: number | null | undefined) => boolean, message: string) => DecimalValidatorType }