diff options
| author | Max Nanis | 2026-09-10 17:46:41 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-10 17:46:41 -0700 |
| commit | ed201936813d9a720b51e6cb40a05267b94e7314 (patch) | |
| tree | f675f6a0d91ed1d17f654e40936e8c1ca9ccf141 /jb-ui/src/store.ts | |
| parent | 0ac38066402762dc5fa24f2ffa2170681a6eddb1 (diff) | |
| download | amt-jb-ed201936813d9a720b51e6cb40a05267b94e7314.tar.gz amt-jb-ed201936813d9a720b51e6cb40a05267b94e7314.zip | |
Typescript prettier
Committing seperate so it's easier to see actual changes.
Diffstat (limited to 'jb-ui/src/store.ts')
| -rw-r--r-- | jb-ui/src/store.ts | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/jb-ui/src/store.ts b/jb-ui/src/store.ts index 7b4d3e3..07cac9e 100644 --- a/jb-ui/src/store.ts +++ b/jb-ui/src/store.ts @@ -1,32 +1,31 @@ -import appReducers from "@/models/appSlice" -import grlStatsReducers from "@/models/grlStatsSlice" -import grlEventsReducers from "@/models/grlEventsSlice" -import profilingQuestionsReducers from "@/models/profilingQuestionsSlice" -import type { Action, ThunkAction } from '@reduxjs/toolkit' -import { configureStore } from '@reduxjs/toolkit' - +import appReducers from "@/models/appSlice"; +import grlStatsReducers from "@/models/grlStatsSlice"; +import grlEventsReducers from "@/models/grlEventsSlice"; +import profilingQuestionsReducers from "@/models/profilingQuestionsSlice"; +import type { Action, ThunkAction } from "@reduxjs/toolkit"; +import { configureStore } from "@reduxjs/toolkit"; export const store = configureStore({ - reducer: { - app: appReducers, - stats: grlStatsReducers, - events: grlEventsReducers, - profilingQuestions: profilingQuestionsReducers, - } -}) + reducer: { + app: appReducers, + stats: grlStatsReducers, + events: grlEventsReducers, + profilingQuestions: profilingQuestionsReducers, + }, +}); // Infer the type of `store` -export type AppStore = typeof store +export type AppStore = typeof store; // Infer the `AppDispatch` type from the store itself -export type AppDispatch = typeof store.dispatch +export type AppDispatch = typeof store.dispatch; // Same for the `RootState` type -export type RootState = ReturnType<typeof store.getState> +export type RootState = ReturnType<typeof store.getState>; // Define a reusable type describing thunk functions export type AppThunk<ThunkReturnType = void> = ThunkAction< - ThunkReturnType, - RootState, - unknown, - Action -> + ThunkReturnType, + RootState, + unknown, + Action +>; |
