Skip to content

Commit

Permalink
Merge d34eab1 into 39067c0
Browse files Browse the repository at this point in the history
  • Loading branch information
xc1427 committed Nov 21, 2019
2 parents 39067c0 + d34eab1 commit 90bb67e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/dva/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import {
Action,
AnyAction,
ReducersMapObject,
Dispatch,
MiddlewareAPI,
StoreEnhancer,
bindActionCreators
} from 'redux';

import { History } from "history";

export interface Dispatch<A extends Action = AnyAction> {
<T extends A>(action: T): Promise<any> | T;
}

export interface onActionFunc {
(api: MiddlewareAPI<any>): void,
}
Expand Down Expand Up @@ -55,10 +58,6 @@ export interface EffectsMapObject {
[key: string]: Effect | EffectWithType,
}

export interface Dispatch<A extends Action = AnyAction> {
<T extends A>(action: T): Promise<any> | T;
}

export interface SubscriptionAPI {
history: History,
dispatch: Dispatch<any>,
Expand Down

0 comments on commit 90bb67e

Please sign in to comment.