UNPKG

@mmstack/form-validation

Version:

This is an internal library for providing localized validators :)

4 lines (3 loc) 400 B
import { Validator } from '../validator.type'; export declare function defaultMaxDateMessageFactory(dateLabel: string): string; export declare function createMaxDateValidator<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>;