@mmstack/form-validation
Version:
This is an internal library for providing localized validators :)
4 lines (3 loc) • 346 B
TypeScript
import { Validator } from '../validator.type';
export declare function defaultMinLengthMessageFactory(min: number, elementsLabel?: string): string;
export declare function createMinLengthValidator(createMsg: (min: number, elementsLabel?: string) => string): <T extends string | any[] | null>(min: number, elementsLabel?: string) => Validator<T>;