react-formawesome-core
Version:
React validation form core lib
15 lines (14 loc) • 536 B
TypeScript
import * as PropTypes from "prop-types";
import { UncertainObject } from "../../Validators";
export declare enum Event {
change = "change",
focus = "focus",
blur = "blur"
}
declare type ValidateOn = keyof typeof Event | ((values: UncertainObject, errors: UncertainObject) => boolean);
export interface FormGroupProviderProps {
attribute: string;
validateOn?: ValidateOn | Array<ValidateOn>;
}
export declare const FormGroupProviderPropTypes: PropTypes.ValidationMap<FormGroupProviderProps>;
export {};