10 lines
293 B
TypeScript
10 lines
293 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> |