mirror of
https://github.com/r2r90/canvas-label.git
synced 2026-01-05 12:37:13 +00:00
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import { appSlice } from "./app.slice";
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
[appSlice.name]: appSlice.reducer,
|
|
},
|
|
});
|
|
|
|
export type AppDispatch = typeof store.dispatch;
|
|
export type RootState = ReturnType<typeof store.getState>;
|