UNPKG

@mmstack/form-validation

Version:

This is an internal library for providing localized validators :)

6 lines (5 loc) 481 B
import { Validator } from '../validator.type'; export declare function defaultMustBeMessageFactory(valueLabel: string): string; export declare function createMustBeValidator(createMessage: (valueLabel: string) => string): <T>(value: T, valueLabel?: string, matcher?: (a: T, b: T) => boolean) => Validator<T>; export declare function defaultMustBeEmptyMessageFactory(): string; export declare function createMustBeEmptyValidator(createMessage: () => string): <T>() => Validator<T>;