mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Fix epicMiddleware typing
This commit is contained in:
parent
647a514d2d
commit
f5bdf0cf92
1 changed files with 11 additions and 2 deletions
13
js/store.ts
13
js/store.ts
|
|
@ -8,7 +8,11 @@ import { UPDATE_TIME_ELAPSED, STEP_MARQUEE } from "./actionTypes";
|
|||
import Media from "./media";
|
||||
import Emitter from "./emitter";
|
||||
import { Extras, Dispatch, Action, AppState, Middleware } from "./types";
|
||||
import { createEpicMiddleware, combineEpics } from "redux-observable";
|
||||
import {
|
||||
createEpicMiddleware,
|
||||
combineEpics,
|
||||
EpicMiddleware,
|
||||
} from "redux-observable";
|
||||
import * as Epics from "./epics";
|
||||
|
||||
// TODO: Move to demo
|
||||
|
|
@ -36,7 +40,12 @@ export default function(
|
|||
return next(action);
|
||||
};
|
||||
|
||||
const epicMiddleware = createEpicMiddleware({
|
||||
const epicMiddleware: EpicMiddleware<
|
||||
Action,
|
||||
Action,
|
||||
AppState,
|
||||
Extras
|
||||
> = createEpicMiddleware({
|
||||
dependencies: extras,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue