UNPKG

react-formawesome-core

Version:
15 lines (14 loc) 536 B
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 {};