ngrx-run
Version:
Return side-effects as data from your NgRx reducers
7 lines (6 loc) • 548 B
TypeScript
import { Action, ActionReducerFactory, ActionReducerMap, MetaReducer } from '@ngrx/store';
import { Injector } from '@angular/core';
declare type TypeId<T> = () => T;
declare type InitialState<T> = Partial<T> | TypeId<Partial<T>> | void;
export declare function createRuntimeReducerFactory<T, V extends Action = Action>(reducerFactory: ActionReducerFactory<T, V>, injector: Injector, metaReducers?: MetaReducer<T, V>[]): (reducers: ActionReducerMap<T, V>, initialState?: InitialState<T>) => (state: T | undefined, action: V) => T;
export {};