tsg-web/src/models/store.ts

12 lines
315 B
TypeScript
Raw Normal View History

2024-09-20 15:02:50 +08:00
import { init, RematchDispatch, RematchRootState } from '@rematch/core'
import { models, RootModel } from './index'
export const store = init({
models,
})
export type Store = typeof store
export type Dispatch = RematchDispatch<RootModel>
export type RootState = RematchRootState<RootModel>
export default store