easy-soft-dva 3.6.131 → 3.6.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,6 @@
2
2
  * Create dva-core instance.
3
3
  * @param {Object} hooksAndOptions
4
4
  * @param {Object} createOptions
5
- * @returns
6
5
  */
7
6
  export function create(hooksAndOptions?: Object, createOptions?: Object): {
8
7
  _models: any[];
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Set application external config list
3
- * @param {Object|Array} configs application initial config list
3
+ * @param {Object|Array} initialConfig application initial config
4
4
  */
5
- export function setApplicationInitialOption(o?: {}): void;
5
+ export function setApplicationInitialOption(initialConfig?: Object | any[]): void;
6
6
  /**
7
7
  * Initialize application
8
8
  */
@@ -19,9 +19,9 @@ export function getDispatch(): any;
19
19
  /**
20
20
  * Dispatch model effect with payload and alias
21
21
  * @param {Object} option dispatch option
22
- * @param {String} option.type type
22
+ * @param {string} option.type type
23
23
  * @param {Object} option.payload payload params
24
- * @param {String} option.alias data mount to state with alias key
24
+ * @param {string} option.alias data mount to state with alias key
25
25
  */
26
26
  export function dispatch({ type, payload, alias }: {
27
27
  type: string;
@@ -31,10 +31,10 @@ export function dispatch({ type, payload, alias }: {
31
31
  /**
32
32
  * Dispatch model effect with payload and alias
33
33
  * @param {Object} option dispatch option
34
- * @param {String} option.model model name
35
- * @param {String} option.effect model effect name
34
+ * @param {string} option.model model name
35
+ * @param {string} option.effect model effect name
36
36
  * @param {Object} option.payload payload params
37
- * @param {String} option.alias data mount to state with alias key
37
+ * @param {string} option.alias data mount to state with alias key
38
38
  */
39
39
  export function dispatchModel({ model, effect, payload, alias }: {
40
40
  model: string;
@@ -48,17 +48,17 @@ export function dispatchModel({ model, effect, payload, alias }: {
48
48
  export function getAllModel(): any;
49
49
  /**
50
50
  * Get the special model
51
- * @param {String} name model name
51
+ * @param {string} name model name
52
52
  */
53
53
  export function getModel(name: string): any;
54
54
  /**
55
55
  * Get the special model state
56
- * @param {String} name model name
56
+ * @param {string} name model name
57
57
  */
58
58
  export function getModelState(name: string): any;
59
59
  /**
60
60
  * Get the special model state date, eg "model.state.data" value
61
- * @param {String} name model name
61
+ * @param {string} name model name
62
62
  */
63
63
  export function getModelRemoteData(name: string): any;
64
64
  export namespace applicationAssist {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-dva",
3
- "version": "3.6.131",
3
+ "version": "3.6.133",
4
4
  "description": "The core lightweight library for dva, based on redux and redux-saga.",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -18,6 +18,7 @@
18
18
  "postbuild:rollup:skipCompression": "npm run z:tsc:build",
19
19
  "dev:rollup": "rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs --watch --watch.onBundleEnd=\"npm run z:tsc:build\"",
20
20
  "precommit": "npm run z:lint:staged:quiet",
21
+ "z:auto:adjust:file": "npm run z:documentation:generate",
21
22
  "prez:documentation:generate": "npx rimraf ./docs && npm run z:documentation:lint",
22
23
  "z:documentation:generate": "npx documentation build src/** -f html --github -o docs",
23
24
  "z:documentation:lint": "npx documentation lint src/**",
@@ -48,7 +49,7 @@
48
49
  "dependencies": {
49
50
  "@babel/runtime": "^7.21.0",
50
51
  "@reduxjs/toolkit": "^1.9.3",
51
- "easy-soft-utility": "^2.4.102",
52
+ "easy-soft-utility": "^2.4.104",
52
53
  "flatten": "^1.0.3",
53
54
  "global": "^4.4.0",
54
55
  "invariant": "^2.2.4",
@@ -93,7 +94,7 @@
93
94
  "cross-env": "^7.0.3",
94
95
  "cssnano": "^5.1.15",
95
96
  "documentation": "^14.0.1",
96
- "easy-soft-develop": "^2.0.191",
97
+ "easy-soft-develop": "^2.0.195",
97
98
  "eslint": "^8.36.0",
98
99
  "eslint-config-airbnb": "^19.0.4",
99
100
  "eslint-config-airbnb-typescript": "^17.0.0",
@@ -118,7 +119,7 @@
118
119
  "prettier-plugin-organize-imports": "^3",
119
120
  "prettier-plugin-packagejson": "^2",
120
121
  "rimraf": "^4.4.1",
121
- "rollup": "^3.20.0",
122
+ "rollup": "^3.20.1",
122
123
  "rollup-plugin-copy": "^3.4.0",
123
124
  "rollup-plugin-livereload": "^2.0.5",
124
125
  "rollup-plugin-postcss": "^4.0.2",