UNPKG

yarfl

Version:

Yet Another Redux Forms Library

8 lines (7 loc) 939 B
import { ActionUnknown, ActionWithKey, ActionWithKeyAndValue, CompleteConfig, FormState, InputValue, ShowErrorsAction, ValidateAction } from '../typings'; export declare const createFieldReducer: <S extends object>(config: CompleteConfig<S>) => (state: FormState<any>, action: ActionUnknown) => any; export declare const createUpdateFieldReducer: <S extends object>(config: CompleteConfig<S>) => (state: FormState<any>, action: ActionWithKeyAndValue<InputValue>) => any; export declare const createClearFieldReducer: () => (state: FormState<any>, action: ActionWithKey) => FormState<any>; export declare const createResetFieldReducer: () => (state: FormState<any>, action: ActionWithKey) => any; export declare const createValidateFieldReducer: () => (state: FormState<any>, action: ValidateAction<true, any>) => any; export declare const createShowFieldErrorsReducer: () => (state: FormState<any>, action: ShowErrorsAction<true>) => any;