There was an error while loading. Please reload this page.
1 parent 39067c0 commit 819a021Copy full SHA for 819a021
1 file changed
packages/dva/index.d.ts
@@ -3,14 +3,17 @@ import {
3
Action,
4
AnyAction,
5
ReducersMapObject,
6
- Dispatch,
7
MiddlewareAPI,
8
StoreEnhancer,
9
bindActionCreators
10
} from 'redux';
11
12
import { History } from "history";
13
+export interface Dispatch<A extends Action = AnyAction> {
14
+ <T extends A>(action: T): Promise<any> | T;
15
+}
16
+
17
export interface onActionFunc {
18
(api: MiddlewareAPI<any>): void,
19
}
@@ -55,10 +58,6 @@ export interface EffectsMapObject {
55
58
[key: string]: Effect | EffectWithType,
56
59
57
60
-export interface Dispatch<A extends Action = AnyAction> {
- <T extends A>(action: T): Promise<any> | T;
-}
61
-
62
export interface SubscriptionAPI {
63
history: History,
64
dispatch: Dispatch<any>,
0 commit comments