UNPKG

vdr-react-form-manager

Version:
15 lines (14 loc) 1.07 kB
import { IFormInitalState } from '..'; import { IFormValidator } from '../interface/form/FormValidatior.interface'; import { IFormPropertiesMutation } from '../interface/form/mutation/FormPropertiesMutation.interface'; import { IState } from '../interface/form/State.interface'; import { IStateInputs } from '../interface/form/StateInptus.interface'; export declare const getIsFormPristine: (formInputs: IStateInputs) => boolean; export declare const getIsFormTouched: (formInputs: IStateInputs) => boolean; export declare const getFormValidity: (formInputs: IStateInputs, formValidators: IFormValidator[]) => { formErrors: string[]; isFormValid: boolean; }; export declare const handleInputChange: ({ name, value, type, tagName, checked, emitLastFieldUpdatedStatus }: any, currentState: IState) => IState; export declare const resetState: ({ formInputs, formValidators, formCustomsProps, formClassNames, }: IFormInitalState) => IState; export declare const setFormProperties: (formPropertiesMutation: IFormPropertiesMutation, currentState: IState) => IState;