diff --git a/CHANGELOG.md b/CHANGELOG.md index 74fb672bfb..996b513c21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixes [#4865](https://github.com/microsoft/BotFramework-WebChat/issues/4865). Fixed CTRL + Z should undo correctly, by [@compulim](https://github.com/compulim), in PR [#4861](https://github.com/microsoft/BotFramework-WebChat/issues/pull/4861) - Fixes [#4863](https://github.com/microsoft/BotFramework-WebChat/issues/4863). Disable dark theme for link references until chat history has dark theme support, by [@compulim](https://github.com/compulim), in PR [#4864](https://github.com/microsoft/BotFramework-WebChat/pull/4864) - Fixes [#4866](https://github.com/microsoft/BotFramework-WebChat/issues/4866). Citation modal show fill screen width on mobile device and various fit-and-finish, by [@compulim](https://github.com/compulim), in PR [#4867](https://github.com/microsoft/BotFramework-WebChat/pull/4867) +- Fixes [#4878](https://github.com/microsoft/BotFramework-WebChat/issues/4878). `createStore` should return type of `Redux.Store`, by [@compulim](https://github.com/compulim), in PR [#4877](https://github.com/microsoft/BotFramework-WebChat/pull/4877) ### Added diff --git a/packages/core/src/createStore.ts b/packages/core/src/createStore.ts index f62d546ffc..0d3c9847c1 100644 --- a/packages/core/src/createStore.ts +++ b/packages/core/src/createStore.ts @@ -1,4 +1,4 @@ -import { applyMiddleware, createStore as createReduxStore } from 'redux'; +import { applyMiddleware, createStore as createReduxStore, type Store } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import createSagaMiddleware from 'redux-saga'; @@ -29,8 +29,6 @@ type CreateStoreOptions = { ponyfill?: Partial; }; -type Store = ReturnType; - function createEnhancerAndSagaMiddleware(getStore, ...middlewares) { const sagaMiddleware = createSagaMiddleware({ onError: (...args) => {