From 50b25433fcb7e49b5e0d61ae24cc3b59b653052f Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 17 May 2020 21:39:24 -0700 Subject: [PATCH] Ensure Store type includes observable interface --- js/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/types.ts b/js/types.ts index 4db0cb26..a7ddadca 100644 --- a/js/types.ts +++ b/js/types.ts @@ -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; @@ -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;