Skip to content

Commit

Permalink
Disuse ToolkitStore, an insufficiently explicit type
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 9, 2023
1 parent c0b0ef6 commit a8d3118
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { configureStore } from "@reduxjs/toolkit";
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
import { persistStore, persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage";

Expand All @@ -19,9 +18,8 @@ const immutableCheckConfig =
? { warnAfter: 1000 }
: false;

export const setupStore = (
preloadedState?: PreloadedState<RootState>
): ToolkitStore => {
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export const setupStore = (preloadedState?: PreloadedState<RootState>) => {
return configureStore({
reducer: persistedReducer,
// for each of the default middleware items set to:
Expand Down

0 comments on commit a8d3118

Please sign in to comment.