UNPKG

ngrx-forms

Version:

Proper integration of forms in Angular 4 applications using ngrx

12 lines (11 loc) 558 B
import { AbstractControlState, FormState } from '../state'; /** * This update function takes a name and returns a projection function that * clears the async error with the given name. */ export declare function clearAsyncError(name: string): <TValue>(state: AbstractControlState<TValue>) => FormState<TValue>; /** * This update function takes a form state and a name, and clears the async * error with the given name. */ export declare function clearAsyncError<TValue>(state: AbstractControlState<TValue>, name: string): FormState<TValue>;