UNPKG

ngrx-forms

Version:

Proper integration of forms in Angular 4 applications using ngrx

19 lines (18 loc) 1.04 kB
import { AbstractControlState, FormArrayState, FormControlState, FormControlValueTypes, FormGroupState, FormState, KeyValue } from '../state'; /** * This update function takes a form control state and marks it as dirty. */ export declare function markAsDirty<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 dirty. */ export declare function markAsDirty<TValue>(state: FormArrayState<TValue>): FormArrayState<TValue>; /** * This update function takes a form group state and marks it and all of its children as dirty. */ export declare function markAsDirty<TValue extends KeyValue>(state: FormGroupState<TValue>): FormGroupState<TValue>; /** * This update function takes a state and marks it as dirty. For groups and arrays this also marks * all children as dirty. */ export declare function markAsDirty<TValue>(state: AbstractControlState<TValue>): FormState<TValue>;