@mpxjs/core 2.7.1 → 2.7.2
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/global.d.ts +0 -8
- package/@types/index.d.ts +6 -0
- package/package.json +2 -2
package/@types/global.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import VueI18n from 'vue-i18n'
|
|
2
|
-
|
|
3
1
|
// declaration for mpx mode
|
|
4
2
|
declare let __mpx_mode__: 'wx' | 'ali' | 'swan' | 'qq' | 'tt' | 'web' | 'dd' | 'qa' | 'jd'
|
|
5
3
|
|
|
@@ -10,10 +8,4 @@ declare let __mpx_env__: string
|
|
|
10
8
|
declare module '*?resolve' {
|
|
11
9
|
const resourcePath: string
|
|
12
10
|
export default resourcePath
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare module 'vue-i18n' {
|
|
16
|
-
export default interface VueI18n {
|
|
17
|
-
mergeMessages(messages: {[index: string]:VueI18n.LocaleMessageObject}): void;
|
|
18
|
-
}
|
|
19
11
|
}
|
package/@types/index.d.ts
CHANGED
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
/// <reference path="./mpx-store.d.ts" />
|
|
8
8
|
/// <reference path="./global.d.ts" />
|
|
9
9
|
/// <reference path="./node.d.ts" />
|
|
10
|
+
import VueI18n from 'vue-i18n'
|
|
10
11
|
|
|
12
|
+
declare module 'vue-i18n' {
|
|
13
|
+
export default interface VueI18n {
|
|
14
|
+
mergeMessages(messages: {[index: string]:VueI18n.LocaleMessageObject}): void;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
11
17
|
// declare Store types
|
|
12
18
|
type StoreOpt<S, G, M, A, D extends MpxStore.Deps> = MpxStore.StoreOpt<S, G, M, A, D>
|
|
13
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/core",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "mpx runtime core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miniprogram",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"url": "https://github.com/didi/mpx/issues"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "eef4ac033679bdc5cb51ed1ddca08bd1d54bfdd2"
|
|
45
45
|
}
|