UNPKG

@undermuz/use-form

Version:
9 lines (6 loc) 445 B
import { IStore, DispatchFunction, IAction } from '../../utils/useReducer.js'; import { IUseIsFormSettings } from '../helpers.js'; import { IFormState, IErrors } from '../reducer.js'; declare const getFormErrors: (state: IFormState) => IErrors; declare const createValidating: (settings?: IUseIsFormSettings) => (store: IStore<IFormState>) => (next: DispatchFunction) => (action: IAction) => void; export { createValidating, getFormErrors };