ngrx-forms
Version:
Proper integration of forms in Angular 4 applications using ngrx
19 lines (18 loc) • 1.09 kB
TypeScript
import { AbstractControlState, FormArrayState, FormControlState, FormControlValueTypes, FormGroupState, FormState, KeyValue } from '../state';
/**
* This update function takes a form control state and marks it as unsubmitted.
*/
export declare function markAsUnsubmitted<TValue extends FormControlValueTypes>(state: FormControlState<TValue>): FormControlState<TValue>;
/**
* This update function takes a form array state and marks it and all of its children as unsubmitted.
*/
export declare function markAsUnsubmitted<TValue>(state: FormArrayState<TValue>): FormArrayState<TValue>;
/**
* This update function takes a form group state and marks it and all of its children as unsubmitted.
*/
export declare function markAsUnsubmitted<TValue extends KeyValue>(state: FormGroupState<TValue>): FormGroupState<TValue>;
/**
* This update function takes a state and marks it as unsubmitted. For groups and arrays this also marks
* all children as unsubmitted.
*/
export declare function markAsUnsubmitted<TValue>(state: AbstractControlState<TValue>): FormState<TValue>;