tiny-mobx-form
Version:
Tiny (~2KB) tree-shakable MobX form library
28 lines (27 loc) • 1.09 kB
TypeScript
import { IValidator } from '../types';
export declare const MESSAGES: {
required: () => string;
requiredIf: (dependentLabel: string | undefined, label: string | undefined) => string;
length: (min: string, max: string) => string;
match: (label: string | undefined, matchingLabel: string | undefined) => string;
letters: () => string;
email: () => string;
phone: () => string;
postal: () => string;
number: () => string;
alpha: () => string;
size: (min: string, max: string) => string;
oneOf: (pool: string[]) => string;
};
export declare const required: IValidator;
export declare const requiredIf: IValidator;
export declare const length: IValidator;
export declare const match: IValidator;
export declare const letters: IValidator;
export declare const email: IValidator;
export declare const phone: IValidator;
export declare const postal: IValidator;
export declare const numbers: IValidator;
export declare const alpha: IValidator;
export declare const size: IValidator;
export declare const oneOf: IValidator;