ngrx-forms
Version:
Proper integration of forms in Angular 4 applications using ngrx
9 lines (8 loc) • 516 B
TypeScript
import { Action } from '@ngrx/store';
import { Actions } from '../actions';
import { FormGroupState, KeyValue } from '../state';
export declare function formGroupReducerInternal<TValue extends KeyValue>(state: FormGroupState<TValue>, action: Actions<TValue>): FormGroupState<TValue>;
/**
* This reducer function updates a form group state with actions.
*/
export declare function formGroupReducer<TValue extends KeyValue>(state: FormGroupState<TValue> | undefined, action: Action): FormGroupState<TValue>;