@mpxjs/store 2.10.16 → 2.10.17

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 CHANGED
@@ -4,7 +4,7 @@ type UnboxDepField<D, F> = F extends keyof D ? D[F] : {}
4
4
 
5
5
  type GetReturnOrSelf<T> = T extends (...args: any)=> infer R ? R : T
6
6
 
7
- interface compContext {
7
+ export interface compContext {
8
8
  [key: string]: any
9
9
  }
10
10
 
@@ -158,7 +158,7 @@ type UnionToIntersection<U> = (U extends any
158
158
  ? I
159
159
  : never;
160
160
 
161
- interface mapStateFunctionType<S, G> {
161
+ export interface mapStateFunctionType<S, G> {
162
162
  [key: string]: (state: S, getter: G) => any
163
163
  }
164
164
  interface DeeperMutationsAndActions {
@@ -242,7 +242,7 @@ interface StoreOptWithThis<S, G, M, A, D extends Deps> {
242
242
  modules?: Record<string, StoreOptWithThis<{}, {}, {}, {}, {}>>
243
243
  }
244
244
 
245
- interface IStoreWithThis<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {
245
+ export interface IStoreWithThis<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {
246
246
 
247
247
  [DEPS_SYMBOL]: D
248
248
  [STATE_SYMBOL]: S
@@ -384,7 +384,7 @@ interface IStoreWithThis<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {
384
384
  mapActionsToInstance<T extends { [key: string]: string }>(obj: T, context: compContext): void
385
385
  }
386
386
 
387
- type StoreWithThis<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> = IStoreWithThis<S, G, M, A, D> & CompatibleDispatch
387
+ export type StoreWithThis<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> = IStoreWithThis<S, G, M, A, D> & CompatibleDispatch
388
388
 
389
389
  interface StoreOpt<S, G, M, A, D extends Deps> {
390
390
  state?: S,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/store",
3
- "version": "2.10.16",
3
+ "version": "2.10.17",
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.16"
29
+ "@mpxjs/utils": "^2.10.17"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@mpxjs/core": "^2.9.0"
33
33
  },
34
- "gitHead": "be4129320e298edf935ea35f9ca3d375f75ac51c"
34
+ "gitHead": "33fbd0bb8d4b83555239a8931fabb23022af0866"
35
35
  }