ngrx-loading-state
Version:
NgRx Loading State consistently manages loading actions such as API fetches.
5 lines (4 loc) • 322 B
TypeScript
import { MetaReducer } from '@ngrx/store';
import { FailureAction, LoadingState } from './loading-state/loading-state-types';
export declare type FailureHandler = (failureAction: FailureAction, state: LoadingState) => void;
export declare function globalFailureReducerFactory(failureHandler: FailureHandler): MetaReducer;