@uiw-admin/models
Version:
14 lines (13 loc) • 745 B
TypeScript
import { RematchRootState, RematchDispatch, Model, RematchStore } from '@rematch/core';
import { ExtraModelsFromLoading } from '@rematch/loading';
/** @@ 指向 /src/.uiw 目录 */
import { store, RootModel } from '@@/rematch';
export { store };
export type FullModel = ExtraModelsFromLoading<RootModel>;
export declare const dispatch: RematchDispatch<RootModel>, addModel: (model: import("@rematch/core").NamedModel<RootModel, any, any>) => void;
export type Store = RematchStore<RootModel, FullModel>;
export type AddModel = typeof addModel;
export type Dispatch = RematchDispatch<RootModel>;
export type RootState = RematchRootState<RootModel, FullModel>;
export type ModelDefault<T = any> = Model<RootModel, T>;
export * from '@@/rematch';