UNPKG

cra-template-sdw

Version:
19 lines (14 loc) 377 B
import { Action, configureStore, ThunkAction } from '@reduxjs/toolkit'; /* STORE_EXPORTS */ export const store = configureStore({ reducer: { }, }); export type AppDispatch = typeof store.dispatch; export type RootState = ReturnType<typeof store.getState>; export type AppThunk<ReturnType = void> = ThunkAction< ReturnType, RootState, unknown, Action<string> >;