UNPKG

523 BTypeScriptView Raw
1import { Action, Middleware, Dispatch } from 'redux';
2import { Epic } from './epic';
3interface Options<D = any> {
4 dependencies?: D;
5}
6export interface EpicMiddleware<T extends Action, O extends T = T, S = void, D = any> extends Middleware<{}, S, Dispatch<any>> {
7 run(rootEpic: Epic<T, O, S, D>): void;
8}
9export declare function createEpicMiddleware<T extends Action, O extends T = T, S = void, D = any>(options?: Options<D>): EpicMiddleware<T, O, S, D>;
10export {};
11//# sourceMappingURL=createEpicMiddleware.d.ts.map
\No newline at end of file