Skip to content

Commit

Permalink
Revert Redux store type (#4877)
Browse files Browse the repository at this point in the history
* Use Store type

* Add entry
  • Loading branch information
compulim authored Sep 27, 2023
1 parent afe913c commit 58ec6cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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)
- 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

Expand Down
4 changes: 1 addition & 3 deletions packages/core/src/createStore.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -29,8 +29,6 @@ type CreateStoreOptions = {
ponyfill?: Partial<GlobalScopePonyfill>;
};

type Store = ReturnType<typeof createReduxStore>;

function createEnhancerAndSagaMiddleware(getStore, ...middlewares) {
const sagaMiddleware = createSagaMiddleware({
onError: (...args) => {
Expand Down

0 comments on commit 58ec6cd

Please sign in to comment.