11 lines
291 B
TypeScript
11 lines
291 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import urlReducer from '../features/url/urlSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
url: urlReducer
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch; |