UNPKG

@mmstack/form-validation

Version:

This is an internal library for providing localized validators :)

4 lines (3 loc) 276 B
import { Validator } from '../validator.type'; export declare function defaultIsDateMessageFactory(): string; export declare function createIsDateValidator<TDate = Date>(createMsg: () => string, toDate: (date: TDate | string) => Date): () => Validator<TDate | string | null>;