@dcloudio/uni-app-x 0.4.3 → 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/core/lib/route/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +1 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +2 -2
- 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
|
}
|
|
@@ -129,7 +129,7 @@ export type SwitchTabOptions = {
|
|
|
129
129
|
*/
|
|
130
130
|
complete?: SwitchTabCompleteCallback | null
|
|
131
131
|
}
|
|
132
|
-
export type NavigateBack = (options
|
|
132
|
+
export type NavigateBack = (options?: NavigateBackOptions | null) => void
|
|
133
133
|
export type NavigateBackSuccess = AsyncApiSuccessResult
|
|
134
134
|
type NavigateBackSuccessCallback = (result: NavigateBackSuccess) => void
|
|
135
135
|
export type NavigateBackFail = UniError
|
|
@@ -258,7 +258,7 @@ export type SetTabBarStyleOptions = {
|
|
|
258
258
|
complete?: SetTabBarStyleCompleteCallback
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
export type HideTabBar = (options
|
|
261
|
+
export type HideTabBar = (options?: HideTabBarOptions | null) => void
|
|
262
262
|
export type HideTabBarSuccess = AsyncApiSuccessResult
|
|
263
263
|
export type HideTabBarSuccessCallback = (result: HideTabBarSuccess) => void
|
|
264
264
|
export type HideTabBarFail = UniError
|
|
@@ -284,7 +284,7 @@ export type HideTabBarOptions = {
|
|
|
284
284
|
complete?: HideTabBarCompleteCallback
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
export type ShowTabBar = (options
|
|
287
|
+
export type ShowTabBar = (options?: ShowTabBarOptions | null) => void
|
|
288
288
|
export type ShowTabBarSuccess = AsyncApiSuccessResult
|
|
289
289
|
export type ShowTabBarSuccessCallback = (result: ShowTabBarSuccess) => void
|
|
290
290
|
export type ShowTabBarFail = UniError
|
|
@@ -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
|