diff --git a/types/redux-mock-store/redux-mock-store-tests.ts b/types/redux-mock-store/redux-mock-store-tests.ts index 0937e70654..c83207998f 100644 --- a/types/redux-mock-store/redux-mock-store-tests.ts +++ b/types/redux-mock-store/redux-mock-store-tests.ts @@ -1,5 +1,5 @@ import * as Redux from 'redux'; -import configureStore from 'redux-mock-store'; +import configureStore, { MockStore, MockStoreCreator } from 'redux-mock-store'; // Redux store API tests // The following test are taken from ../redux/redux-tests.ts @@ -24,10 +24,10 @@ function loggingMiddleware() { }; } -const storeMock = configureStore([loggingMiddleware]); +const mockStoreCreator: MockStoreCreator = configureStore([loggingMiddleware]); const initialState = 0 -const store = storeMock(initialState); +const store: MockStore = mockStoreCreator(initialState); store.subscribe(() => { // ...