Skip to content

Commit 58ec6cd

Browse files
authored
Revert Redux store type (#4877)
* Use Store type * Add entry
1 parent afe913c commit 58ec6cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3131
- Fixes [#4865](https://github.com/microsoft/BotFramework-WebChat/issues/4865). Fixed <kbd>CTRL</kbd> + <kbd>Z</kbd> should undo correctly, by [@compulim](https://github.com/compulim), in PR [#4861](https://github.com/microsoft/BotFramework-WebChat/issues/pull/4861)
3232
- 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)
3333
- 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)
34+
- 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)
3435

3536
### Added
3637

packages/core/src/createStore.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { applyMiddleware, createStore as createReduxStore } from 'redux';
1+
import { applyMiddleware, createStore as createReduxStore, type Store } from 'redux';
22
import { composeWithDevTools } from 'redux-devtools-extension';
33
import createSagaMiddleware from 'redux-saga';
44

@@ -29,8 +29,6 @@ type CreateStoreOptions = {
2929
ponyfill?: Partial<GlobalScopePonyfill>;
3030
};
3131

32-
type Store = ReturnType<typeof createReduxStore>;
33-
3432
function createEnhancerAndSagaMiddleware(getStore, ...middlewares) {
3533
const sagaMiddleware = createSagaMiddleware({
3634
onError: (...args) => {

0 commit comments

Comments
 (0)