14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
import { configureStore } from '@reduxjs/toolkit'
|
|
import requestReducer from './slices/slice'
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
request: requestReducer
|
|
}
|
|
});
|
|
|
|
(window as any).store = store;
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|