broadcast/ui/src/app/store.ts

18 lines
443 B
TypeScript

import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit';
import radioReducer from '../features/radio/radioSlice';
export const store = configureStore({
reducer: {
globalState: radioReducer,
},
});
export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
export type AppThunk<ReturnType = void> = ThunkAction<
ReturnType,
RootState,
unknown,
Action<string>
>;