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