@mpxjs/core 2.8.20 → 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 +5 -6
- package/package.json +2 -2
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 }):
|
|
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
|
|
445
|
+
t: typeof t & typeof tc
|
|
447
446
|
|
|
448
447
|
te: typeof te
|
|
449
448
|
|
|
@@ -639,7 +638,7 @@ export const ONHIDE: string
|
|
|
639
638
|
export const ONRESIZE: string
|
|
640
639
|
|
|
641
640
|
declare global {
|
|
642
|
-
const defineProps: <T>(props: T) => Readonly<GetPropsType<T>>
|
|
641
|
+
const defineProps: (<T>(props: T) => Readonly<GetPropsType<T>>) & (<T>() => Readonly<T>)
|
|
643
642
|
const defineOptions: <D extends Data = {}, P extends Properties = {}, C = {}, M extends Methods = {}, Mi extends Array<any> = [], S extends AnyObject = {}, O extends AnyObject = {}> (opt: ThisTypedComponentOpt<D, P, C, M, Mi, S, O>) => void
|
|
644
643
|
const defineExpose: <E extends AnyObject = AnyObject>(exposed?: E) => void
|
|
645
644
|
const useContext: () => Context
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/core",
|
|
3
|
-
"version": "2.8.
|
|
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": "
|
|
50
|
+
"gitHead": "6e809a7699a94f12213b350e8f8b0f73d7d2a223"
|
|
51
51
|
}
|