Skip to content

Commit

Permalink
Fix types for store
Browse files Browse the repository at this point in the history
  • Loading branch information
vvscode committed Jun 24, 2020
1 parent 09d59aa commit 7ae267b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import { gameSlice } from "./modules/InteractiveField";
import { loginSlice, getLoginModule } from "./modules/Login";
import { backgroundSlice, getBackgroundModule } from "./modules/Background";

export const store = createStore(
{ extensions: [getSagaExtension({})] },
getLoginModule(),
getBackgroundModule()
);

const reducer = combineReducers({
login: loginSlice.reducer,
game: gameSlice.reducer,
background: backgroundSlice.reducer,
});

export type TicTacToeGameState = ReturnType<typeof reducer>;

export const store = createStore<TicTacToeGameState>(
{ extensions: [getSagaExtension({})] },
getLoginModule(),
getBackgroundModule()
);

0 comments on commit 7ae267b

Please sign in to comment.