@react-rx/form
Version:
rx form for react, use typescript for development
6 lines (5 loc) • 474 B
TypeScript
import { TFieldValue, TValidator } from "./interfaces";
export declare const isFieldDirty: (value: TFieldValue, defaultValue: string) => boolean;
export declare const validateField: (value: string | boolean, validate?: TValidator | TValidator[] | undefined) => string | undefined;
export declare const combineValidators: (validators: TValidator[]) => (value: TFieldValue) => string | undefined;
export declare const pickValue: (evtOrValue: MouseEvent | TFieldValue) => any;