UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

8 lines (7 loc) 346 B
import type { Validator } from './base'; export declare interface TimeValidatorType extends Validator<string> { min: (min: string) => TimeValidatorType max: (max: string) => TimeValidatorType length: (length: number) => TimeValidatorType custom: (fn: (value: string | null | undefined) => boolean, message: string) => TimeValidatorType }