UNPKG

react-remux

Version:
12 lines (11 loc) 377 B
import { Model, PluginMap, Config } from "remux-core/types/@types/"; export interface ModelConfig { plugins?: PluginMap; config?: Config; useHooks?: any; } export interface ModelValues<S = any> { dispatch: any; state: S; } export declare const useModel: <S>(model: Model, fn?: (state?: S, ...v: any[]) => S, c?: ModelConfig) => ModelValues<any>;