12 lines
315 B
TypeScript
12 lines
315 B
TypeScript
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 |