@mmstack/form-validation
Version:
This is an internal library for providing localized validators :)
4 lines (3 loc) • 333 B
TypeScript
import { Validator } from '../validator.type';
export declare function defaultNotOneOfMessageFactory(values: string): string;
export declare function createNotOneOfValidator(createMessage: (values: string) => string): <T>(values: T[], toLabel?: (value: T) => string, identity?: (a: T) => string, delimiter?: string) => Validator<T>;