@mpxjs/store 2.10.6 → 2.10.13
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.
- package/@types/index.d.ts +6 -13
- package/package.json +3 -3
package/@types/index.d.ts
CHANGED
|
@@ -139,21 +139,14 @@ export interface Store<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {
|
|
|
139
139
|
mapActionsToInstance<K extends keyof A>(maps: K[], context: compContext): Pick<GetActions<A>, K>
|
|
140
140
|
mapActionsToInstance(depPath: string, maps: string[], context: compContext): void
|
|
141
141
|
}
|
|
142
|
-
type GetComputedSetKeys<T> = {
|
|
143
|
-
[K in keyof T]: T[K] extends {
|
|
144
|
-
get(): any,
|
|
145
|
-
set(val: any): void
|
|
146
|
-
} ? K : never
|
|
147
|
-
}[keyof T]
|
|
148
142
|
|
|
149
143
|
export type GetComputedType<T> = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
[K
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
144
|
+
[K in keyof T]: T[K] extends { get: (...args: any[]) => infer R }
|
|
145
|
+
? R
|
|
146
|
+
: T[K] extends (...args: any[]) => infer R
|
|
147
|
+
? R
|
|
148
|
+
: never
|
|
149
|
+
}
|
|
157
150
|
|
|
158
151
|
interface MutationsAndActionsWithThis {
|
|
159
152
|
[key: string]: (...payload: any[]) => any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/store",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.13",
|
|
4
4
|
"description": "A store for mpx framework",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "@types/index.d.ts",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/didi/mpx#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@mpxjs/utils": "^2.10.
|
|
29
|
+
"@mpxjs/utils": "^2.10.13"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@mpxjs/core": "^2.9.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1b4a2d4765341ef6c6b74e501f72a0f856f247f9"
|
|
35
35
|
}
|