UNPKG

@mmstack/form-validation

Version:

Provides a type-safe, composable, and localizable validation system designed specifically for use with [@mmstack/form-core](https://www.npmjs.com/package/@mmstack/form-core). It enables defining validation rules clearly within your TypeScript code and int

4 lines (3 loc) 400 B
import { Validator } from '../validator.type'; export declare function defaultMinDateMessageFactory(dateLabel: string): string; export declare function createMinDateValidator<TDate = Date>(createMsg: (dateLabel: string) => string, toDate: (date: TDate | string) => Date, formatDate: (date: Date, locale: string) => string, locale: string): (date: TDate | string) => Validator<TDate | string | null>;