@mpxjs/core 2.6.97 → 2.6.98

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
@@ -93,14 +93,14 @@ interface ObserversDefs {
93
93
  type GetDataType<T> = T extends () => any ? ReturnType<T> : T
94
94
 
95
95
  type PropValueType<Def> = Def extends {
96
- type: (...args: any[]) => infer T;
97
- optionalType?: ((...args: any[]) => infer T)[];
98
- value?: infer T;
99
- }
96
+ type: (...args: any[]) => infer T;
97
+ optionalType?: ((...args: any[]) => infer T)[];
98
+ value?: infer T;
99
+ }
100
100
  ? T
101
101
  : Def extends (...args: any[]) => infer T
102
- ? T
103
- : any;
102
+ ? T
103
+ : any;
104
104
 
105
105
  type GetPropsType<T> = {
106
106
  readonly [K in keyof T]: PropValueType<T[K]>
@@ -286,7 +286,7 @@ export function createActionsWithThis<S = {}, G = {}, M extends MutationsAndActi
286
286
 
287
287
  type MixinType = 'app' | 'page' | 'component'
288
288
 
289
- export function injectMixins (mixins: object | Array<object>, options?: { types?: MixinType | MixinType[], stage?: number }): void
289
+ export function injectMixins (mixins: object | Array<object>, options?: MixinType | MixinType[] | { types?: MixinType | MixinType[], stage?: number }): void
290
290
 
291
291
  export function watch (expr: string | (() => any), handler: WatchHandler | WatchOptWithHandler, options?: WatchOpt): () => void
292
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.6.97",
3
+ "version": "2.6.98",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -40,5 +40,5 @@
40
40
  "url": "https://github.com/didi/mpx/issues"
41
41
  },
42
42
  "sideEffects": false,
43
- "gitHead": "27e3012bcb947fa4a2fc140141de58f148acdad0"
43
+ "gitHead": "c92623625bb16ba8d73c6795fbb36de34570ee51"
44
44
  }