/** * 和Dva、store相关的interface */ export interface Action { type: T; } export interface AnyAction extends Action { payload?: PayloadType; [extraProps: string]: any; } export declare type Reducer = (state: S, action: A) => S; export interface IDispatch { (action: T): Promise; } export interface EffectsCommandMap { put: (action: A) => any; call: Function; select: Function; take: Function; cancel: Function; [key: string]: any; } export declare type Effect = (action: AnyAction, effects: EffectsCommandMap) => void; export interface IDvaLoading { global: boolean; models: any; effects: any; } export interface IBaseConnectState { loading: IDvaLoading; [key: string]: any; }