@dcloudio/uni-app-x 0.4.4 → 0.4.5
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/.env +1 -0
- package/package.json +5 -3
- package/types/native/Event.d.ts +2 -0
- package/types/native/INode.d.ts +4 -0
- package/types/native/MouseEvent.d.ts +17 -0
- package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +1 -1
package/.env
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-app-x",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "uni-app x types",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"author": "DCloud",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build:types:core": "node ./scripts/build-types.js -t core",
|
|
11
11
|
"build:types:ext": "node ./scripts/build-types.js -t ext",
|
|
12
|
+
"build:types:meta": "node ./scripts/build-meta.js",
|
|
12
13
|
"build:types": "npm run build:types:core && npm run build:types:ext"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
"dotenv": "^16.3.1",
|
|
17
18
|
"fs-extra": "^11.1.1",
|
|
18
19
|
"glob": "^10.3.3",
|
|
19
|
-
"minimist": "^1.2.8"
|
|
20
|
+
"minimist": "^1.2.8",
|
|
21
|
+
"ts-morph": "^19.0.0"
|
|
20
22
|
}
|
|
21
|
-
}
|
|
23
|
+
}
|
package/types/native/Event.d.ts
CHANGED
package/types/native/INode.d.ts
CHANGED
|
@@ -6,4 +6,21 @@
|
|
|
6
6
|
declare class MouseEvent extends Event {
|
|
7
7
|
x: number
|
|
8
8
|
y: number
|
|
9
|
+
clientX: number
|
|
10
|
+
clientY: number
|
|
11
|
+
pageX: number
|
|
12
|
+
pageY: number
|
|
13
|
+
screenX: number
|
|
14
|
+
screenY: number
|
|
15
|
+
constructor (
|
|
16
|
+
type: string,
|
|
17
|
+
x: number,
|
|
18
|
+
y: number,
|
|
19
|
+
clientX: number,
|
|
20
|
+
clientY: number,
|
|
21
|
+
pageX: number,
|
|
22
|
+
pageY: number,
|
|
23
|
+
screenX: number,
|
|
24
|
+
screenY: number
|
|
25
|
+
)
|
|
9
26
|
}
|
|
@@ -84,7 +84,7 @@ export type GetAppBaseInfoResult = {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
export type GetAppBaseInfo = (config
|
|
87
|
+
export type GetAppBaseInfo = (config?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
export interface Uni {
|
|
@@ -108,7 +108,7 @@ export type GetDeviceInfoResult = {
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
export type GetDeviceInfo = (config
|
|
111
|
+
export type GetDeviceInfo = (config?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
export interface Uni {
|
|
@@ -320,7 +320,7 @@ export type ClearStorageOptions = {
|
|
|
320
320
|
complete: ClearStorageCompleteCallback | null
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
export type ClearStorage = (option
|
|
323
|
+
export type ClearStorage = (option?: ClearStorageOptions | null) => void
|
|
324
324
|
|
|
325
325
|
|
|
326
326
|
export type ClearStorageSync = () => void
|