UNPKG

ngrx-forms

Version:

Proper integration of forms in Angular 4 applications using ngrx

27 lines (26 loc) 1.71 kB
import { AbstractControlState, FormArrayState, FormControlState, FormControlValueTypes, FormGroupState, FormState, KeyValue } from '../state'; /** * This update function takes a form control state and disables it. Disabling a control * will clear all of its errors (i.e. making it always valid) and will remove all * pending validations (thereby effectively cancelling those validations). */ export declare function disable<TValue extends FormControlValueTypes>(state: FormControlState<TValue>): FormControlState<TValue>; /** * This update function takes a form array state and disables it and all of its children. * Disabling a control will clear all of its errors (i.e. making it always valid) and * will remove all pending validations (thereby effectively cancelling those validations). */ export declare function disable<TValue>(state: FormArrayState<TValue>): FormArrayState<TValue>; /** * This update function takes a form group state and disables it and all of its children. * Disabling a control will clear all of its errors (i.e. making it always valid) and * will remove all pending validations (thereby effectively cancelling those validations). */ export declare function disable<TValue extends KeyValue>(state: FormGroupState<TValue>): FormGroupState<TValue>; /** * This update function takes a form state and disables it. For groups and arrays also * disables all children. Disabling a control will clear all of its errors (i.e. making * it always valid) and will remove all pending validations (thereby effectively * cancelling those validations). */ export declare function disable<TValue>(state: AbstractControlState<TValue>): FormState<TValue>;