Skip to content

Commit

Permalink
Ensure Store type includes observable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed May 18, 2020
1 parent 808cfe9 commit 50b2543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { MilkdropState } from "./reducers/milkdrop";
import { SerializedStateV1 } from "./serializedStates/v1Types";
import { TracksState } from "./reducers/tracks";
import { IAudioMetadata, IOptions } from "music-metadata-browser";
import { Store as ReduxStore } from "redux";

// Avoid warnings from Webpack: https://github.com/webpack/webpack/issues/7378
export type WebampWindow = _WebampWindow;
Expand Down Expand Up @@ -701,7 +702,7 @@ export type Middleware = (
store: MiddlewareStore
) => (next: Dispatch) => (action: Action) => any;

export interface Store {
export interface Store extends ReduxStore {
subscribe(cb: () => void): () => void;
dispatch: Dispatch;
getState: GetState;
Expand Down

0 comments on commit 50b2543

Please sign in to comment.