Comparing version 2.3.2 to 2.4.0
@@ -13,32 +13,32 @@ import { | ||
export interface onActionFunc { | ||
(api: MiddlewareAPI<any>): void; | ||
(api: MiddlewareAPI<any>): void, | ||
} | ||
export interface ReducerEnhancer { | ||
(reducer: Reducer<any>): void | ||
(reducer: Reducer<any>): void, | ||
} | ||
export interface Hooks { | ||
onError?: (e: Error, dispatch: Dispatch<any>) => void; | ||
onAction?: onActionFunc | onActionFunc[]; | ||
onStateChange?: () => void; | ||
onReducer?: ReducerEnhancer; | ||
onEffect?: () => void; | ||
onHmr?: () => void; | ||
extraReducers?: ReducersMapObject; | ||
extraEnhancers?: StoreEnhancer<any>[]; | ||
onError?: (e: Error, dispatch: Dispatch<any>) => void, | ||
onAction?: onActionFunc | onActionFunc[], | ||
onStateChange?: () => void, | ||
onReducer?: ReducerEnhancer, | ||
onEffect?: () => void, | ||
onHmr?: () => void, | ||
extraReducers?: ReducersMapObject, | ||
extraEnhancers?: StoreEnhancer<any>[], | ||
} | ||
export type DvaOption = Hooks & { | ||
initialState?: Object; | ||
history?: Object; | ||
initialState?: Object, | ||
history?: Object, | ||
} | ||
export interface EffectsCommandMap { | ||
put: <A extends AnyAction>(action: A) => any; | ||
call: Function; | ||
select: Function; | ||
take: Function; | ||
cancel: Function; | ||
[key: string]: any; | ||
put: <A extends AnyAction>(action: A) => any, | ||
call: Function, | ||
select: Function, | ||
take: Function, | ||
cancel: Function, | ||
[key: string]: any, | ||
} | ||
@@ -53,12 +53,12 @@ | ||
export interface EffectsMapObject { | ||
[key: string]: Effect | EffectWithType; | ||
[key: string]: Effect | EffectWithType, | ||
} | ||
export interface SubscriptionAPI { | ||
history: History; | ||
dispatch: Dispatch<any>; | ||
history: History, | ||
dispatch: Dispatch<any>, | ||
} | ||
export interface SubscriptionsMapObject { | ||
[key: string]: Subscription; | ||
[key: string]: Subscription, | ||
} | ||
@@ -75,8 +75,8 @@ | ||
export interface RouterAPI { | ||
history: History; | ||
app: DvaInstance; | ||
history: History, | ||
app: DvaInstance, | ||
} | ||
export interface Router { | ||
(api?: RouterAPI): JSX.Element | Object; | ||
(api?: RouterAPI): JSX.Element | Object, | ||
} | ||
@@ -83,0 +83,0 @@ |
{ | ||
"name": "dva", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"description": "React and redux based, lightweight and elm-style framework.", | ||
@@ -33,3 +33,3 @@ "repository": { | ||
"@types/react-router-redux": "^5.0.13", | ||
"dva-core": "^1.3.1", | ||
"dva-core": "^1.4.0", | ||
"global": "^4.3.2", | ||
@@ -36,0 +36,0 @@ "history": "^4.6.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
902224
17975
Updateddva-core@^1.4.0