Socket
Socket
Sign inDemoInstall

dva

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dva - npm Package Compare versions

Comparing version 2.3.2 to 2.4.0

50

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc