@mpxjs/core 2.8.21 → 2.8.22

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
@@ -223,7 +223,7 @@ export function createApp<T extends WechatMiniprogram.IAnyObject> (opt: WechatMi
223
223
 
224
224
  type MixinType = 'app' | 'page' | 'component'
225
225
 
226
- export function injectMixins (mixins: object | Array<object>, options?: MixinType | MixinType[] | { types?: MixinType | MixinType[], stage?: number }): void
226
+ export function injectMixins (mixins: object | Array<object>, options?: MixinType | MixinType[] | { types?: MixinType | MixinType[], stage?: number }): Mpx
227
227
 
228
228
  // export function watch (expr: string | (() => any), handler: WatchHandler | WatchOptWithHandler, options?: WatchOpt): () => void
229
229
 
@@ -267,8 +267,7 @@ export interface Mpx {
267
267
  injectMixins: typeof injectMixins
268
268
  toPureObject: typeof toPureObject
269
269
  observable: typeof observable
270
-
271
- // watch: typeof watch
270
+ watch: typeof watch
272
271
 
273
272
  use (plugin: Plugin, ...rest: any[]): Mpx
274
273
 
@@ -436,14 +435,14 @@ type StringObj = {
436
435
 
437
436
  interface UseI18n {
438
437
  id: number
439
- locale: string
438
+ locale: WritableComputedRef<string>
440
439
  fallbackLocale: string
441
440
  readonly messages: StringObj
442
441
  readonly isGlobal: boolean
443
442
  inheritLocale: boolean
444
443
  fallbackRoot: boolean
445
444
 
446
- t: typeof t | typeof tc
445
+ t: typeof t & typeof tc
447
446
 
448
447
  te: typeof te
449
448
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.8.21",
3
+ "version": "2.8.22",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -47,5 +47,5 @@
47
47
  "url": "https://github.com/didi/mpx/issues"
48
48
  },
49
49
  "sideEffects": false,
50
- "gitHead": "976455b62ed3cd98c7e58d7daca99fd8abb4b5fa"
50
+ "gitHead": "6e809a7699a94f12213b350e8f8b0f73d7d2a223"
51
51
  }