@dcloudio/uni-app-x 0.7.14 → 0.7.15

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.
Files changed (126) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +335 -1919
  8. package/types/native/Path2D.d.ts +74 -0
  9. package/types/native/SnapshotOptions.d.ts +1 -0
  10. package/types/native/UniCanvasElement.d.ts +9 -0
  11. package/types/native/UniNativePage.d.ts +27 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniResizeObserver.d.ts +9 -99
  14. package/types/native/UniScrollEvent.d.ts +1 -1
  15. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  16. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  17. package/types/native/global.d.ts +21 -0
  18. package/types/native/index.d.ts +3 -0
  19. package/types/shim-uts-basic.d.ts +4495 -0
  20. package/types/uni/env/index.d.ts +21 -0
  21. package/types/uni/uts-plugin-api/global.d.ts +12 -1
  22. package/types/uni/uts-plugin-api/index.d.ts +12 -1
  23. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  25. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  26. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  27. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  29. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  30. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  33. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  34. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  35. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  36. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  37. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  38. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  39. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  40. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  41. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  42. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +26 -18
  43. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  44. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  45. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  46. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  47. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  48. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  52. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  53. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  54. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  55. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  56. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +10 -3
  57. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +113 -23
  61. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  62. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  63. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  64. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  65. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  66. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  68. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  69. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  70. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  71. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  72. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  73. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  74. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +312 -58
  75. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  76. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  77. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  78. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  79. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  80. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  81. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  82. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  83. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  84. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +17 -10
  85. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  86. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  87. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  88. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  89. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  91. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  92. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  95. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +241 -32
  96. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  97. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  98. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  99. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  100. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  101. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  102. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  103. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  104. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  105. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  106. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  107. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  108. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  111. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  112. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  113. package/types/uni/uts-plugin-extend/global.d.ts +0 -1
  114. package/types/uni/uts-plugin-extend/index.d.ts +0 -3
  115. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  116. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  117. package/types/uni-cloud/interface.d.ts +57 -3
  118. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  119. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  120. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  121. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  122. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  124. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  125. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  126. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
@@ -1,15 +1,30 @@
1
1
  export type GetDeviceInfoOptions = {
2
2
  /**
3
3
  * @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
4
+ * @uniPlatform
5
+ * {
6
+ * "app": {
7
+ * "android": {
8
+ * "osVer": "5.0",
9
+ * "uniVer": "√",
10
+ * "unixVer": "3.9+"
11
+ * },
12
+ * "harmony": {
13
+ * "osVer": "x",
14
+ * "uniVer": "x",
15
+ * "unixVer": "x"
16
+ * }
17
+ * }
18
+ * }
4
19
  */
5
20
  filter: Array<string>
6
21
  }
7
-
22
+
8
23
  export type GetDeviceInfoResult = {
9
24
  /**
10
25
  * 设备品牌
11
26
  * @deprecated 已废弃,仅为了向下兼容保留
12
- *
27
+ *
13
28
  * @uniPlatform
14
29
  * {
15
30
  * "app": {
@@ -22,7 +37,12 @@ export type GetDeviceInfoOptions = {
22
37
  * "osVer": "12.0",
23
38
  * "uniVer": "√",
24
39
  * "unixVer": "4.11"
25
- * }
40
+ * },
41
+ * "harmony": {
42
+ * "osVer": "x",
43
+ * "uniVer": "x",
44
+ * "unixVer": "x"
45
+ * }
26
46
  * },
27
47
  * "web": {
28
48
  * "uniVer": "x",
@@ -33,7 +53,7 @@ export type GetDeviceInfoOptions = {
33
53
  brand?: string
34
54
  /**
35
55
  * 设备品牌
36
- *
56
+ *
37
57
  * @uniPlatform
38
58
  * {
39
59
  * "app": {
@@ -46,7 +66,12 @@ export type GetDeviceInfoOptions = {
46
66
  * "osVer": "12.0",
47
67
  * "uniVer": "√",
48
68
  * "unixVer": "4.11"
49
- * }
69
+ * },
70
+ * "harmony": {
71
+ * "osVer": "3.0",
72
+ * "uniVer": "4.23",
73
+ * "unixVer": "x"
74
+ * }
50
75
  * },
51
76
  * "web": {
52
77
  * "uniVer": "x",
@@ -57,7 +82,7 @@ export type GetDeviceInfoOptions = {
57
82
  deviceBrand?: string,
58
83
  /**
59
84
  * 设备 id 。由 uni-app 框架生成并存储,清空 Storage 会导致改变
60
- *
85
+ *
61
86
  * @uniPlatform
62
87
  * {
63
88
  * "app": {
@@ -70,7 +95,12 @@ export type GetDeviceInfoOptions = {
70
95
  * "osVer": "12.0",
71
96
  * "uniVer": "√",
72
97
  * "unixVer": "4.11"
73
- * }
98
+ * },
99
+ * "harmony": {
100
+ * "osVer": "3.0",
101
+ * "uniVer": "4.23",
102
+ * "unixVer": "x"
103
+ * }
74
104
  * },
75
105
  * "web": {
76
106
  * "uniVer": "√",
@@ -80,9 +110,9 @@ export type GetDeviceInfoOptions = {
80
110
  */
81
111
  deviceId?: string,
82
112
  /**
83
- * 设备型号
113
+ * 设备型号
84
114
  * @deprecated 已废弃,仅为了向下兼容保留
85
- *
115
+ *
86
116
  * @uniPlatform
87
117
  * {
88
118
  * "app": {
@@ -95,7 +125,12 @@ export type GetDeviceInfoOptions = {
95
125
  * "osVer": "12.0",
96
126
  * "uniVer": "√",
97
127
  * "unixVer": "4.11"
98
- * }
128
+ * },
129
+ * "harmony": {
130
+ * "osVer": "x",
131
+ * "uniVer": "x",
132
+ * "unixVer": "x"
133
+ * }
99
134
  * },
100
135
  * "web": {
101
136
  * "uniVer": "√",
@@ -105,8 +140,8 @@ export type GetDeviceInfoOptions = {
105
140
  */
106
141
  model?: string,
107
142
  /**
108
- * 设备型号
109
- *
143
+ * 设备型号
144
+ *
110
145
  * @uniPlatform
111
146
  * {
112
147
  * "app": {
@@ -119,7 +154,12 @@ export type GetDeviceInfoOptions = {
119
154
  * "osVer": "12.0",
120
155
  * "uniVer": "√",
121
156
  * "unixVer": "4.11"
122
- * }
157
+ * },
158
+ * "harmony": {
159
+ * "osVer": "3.0",
160
+ * "uniVer": "4.23",
161
+ * "unixVer": "x"
162
+ * }
123
163
  * },
124
164
  * "web": {
125
165
  * "uniVer": "√",
@@ -129,8 +169,8 @@ export type GetDeviceInfoOptions = {
129
169
  */
130
170
  deviceModel?: string,
131
171
  /**
132
- * 设备类型phone、pad、pc
133
- *
172
+ * 设备类型phone、pad、pc
173
+ *
134
174
  * @uniPlatform
135
175
  * {
136
176
  * "app": {
@@ -143,7 +183,12 @@ export type GetDeviceInfoOptions = {
143
183
  * "osVer": "12.0",
144
184
  * "uniVer": "√",
145
185
  * "unixVer": "4.11"
146
- * }
186
+ * },
187
+ * "harmony": {
188
+ * "osVer": "3.0",
189
+ * "uniVer": "4.23",
190
+ * "unixVer": "x"
191
+ * }
147
192
  * },
148
193
  * "web": {
149
194
  * "uniVer": "√",
@@ -153,8 +198,8 @@ export type GetDeviceInfoOptions = {
153
198
  */
154
199
  deviceType?: 'phone' | 'pad' | 'tv' | 'watch' | 'pc' | 'undefined' | 'car' | 'vr' | 'appliance',
155
200
  /**
156
- * 设备方向 竖屏 portrait、横屏 landscape
157
- *
201
+ * 设备方向 竖屏 portrait、横屏 landscape
202
+ *
158
203
  * @uniPlatform
159
204
  * {
160
205
  * "app": {
@@ -167,7 +212,12 @@ export type GetDeviceInfoOptions = {
167
212
  * "osVer": "12.0",
168
213
  * "uniVer": "√",
169
214
  * "unixVer": "4.11"
170
- * }
215
+ * },
216
+ * "harmony": {
217
+ * "osVer": "3.0",
218
+ * "uniVer": "4.23",
219
+ * "unixVer": "x"
220
+ * }
171
221
  * },
172
222
  * "web": {
173
223
  * "uniVer": "√",
@@ -177,8 +227,8 @@ export type GetDeviceInfoOptions = {
177
227
  */
178
228
  deviceOrientation?: string,
179
229
  /**
180
- * 设备像素比
181
- *
230
+ * 设备像素比
231
+ *
182
232
  * @uniPlatform
183
233
  * {
184
234
  * "app": {
@@ -191,7 +241,12 @@ export type GetDeviceInfoOptions = {
191
241
  * "osVer": "12.0",
192
242
  * "uniVer": "√",
193
243
  * "unixVer": "4.11"
194
- * }
244
+ * },
245
+ * "harmony": {
246
+ * "osVer": "3.0",
247
+ * "uniVer": "4.23",
248
+ * "unixVer": "x"
249
+ * }
195
250
  * },
196
251
  * "web": {
197
252
  * "uniVer": "√",
@@ -201,8 +256,8 @@ export type GetDeviceInfoOptions = {
201
256
  */
202
257
  devicePixelRatio?: number,
203
258
  /**
204
- * 操作系统及版本
205
- *
259
+ * 操作系统及版本
260
+ *
206
261
  * @uniPlatform
207
262
  * {
208
263
  * "app": {
@@ -215,7 +270,12 @@ export type GetDeviceInfoOptions = {
215
270
  * "osVer": "12.0",
216
271
  * "uniVer": "√",
217
272
  * "unixVer": "4.11"
218
- * }
273
+ * },
274
+ * "harmony": {
275
+ * "osVer": "3.0",
276
+ * "uniVer": "4.23",
277
+ * "unixVer": "x"
278
+ * }
219
279
  * },
220
280
  * "web": {
221
281
  * "uniVer": "√",
@@ -225,8 +285,8 @@ export type GetDeviceInfoOptions = {
225
285
  */
226
286
  system?: string,
227
287
  /**
228
- * 客户端平台
229
- *
288
+ * 客户端平台
289
+ *
230
290
  * @uniPlatform
231
291
  * {
232
292
  * "app": {
@@ -239,7 +299,12 @@ export type GetDeviceInfoOptions = {
239
299
  * "osVer": "12.0",
240
300
  * "uniVer": "√",
241
301
  * "unixVer": "4.11"
242
- * }
302
+ * },
303
+ * "harmony": {
304
+ * "osVer": "3.0",
305
+ * "uniVer": "4.23",
306
+ * "unixVer": "x"
307
+ * }
243
308
  * },
244
309
  * "web": {
245
310
  * "uniVer": "√",
@@ -247,10 +312,10 @@ export type GetDeviceInfoOptions = {
247
312
  * }
248
313
  * }
249
314
  */
250
- platform?: 'ios' | 'android' | 'mac' | 'windows' | 'linux',
315
+ platform?: 'ios' | 'android' | 'harmonyos' | 'mac' | 'windows' | 'linux',
251
316
  /**
252
317
  * 是否root。iOS 为是否越狱
253
- *
318
+ *
254
319
  * @uniPlatform
255
320
  * {
256
321
  * "app": {
@@ -263,7 +328,12 @@ export type GetDeviceInfoOptions = {
263
328
  * "osVer": "12.0",
264
329
  * "uniVer": "x",
265
330
  * "unixVer": "4.11"
266
- * }
331
+ * },
332
+ * "harmony": {
333
+ * "osVer": "x",
334
+ * "uniVer": "x",
335
+ * "unixVer": "x"
336
+ * }
267
337
  * },
268
338
  * "web": {
269
339
  * "uniVer": "x",
@@ -274,7 +344,7 @@ export type GetDeviceInfoOptions = {
274
344
  isRoot?: boolean,
275
345
  /**
276
346
  * 是否是模拟器
277
- *
347
+ *
278
348
  * @uniPlatform
279
349
  * {
280
350
  * "app": {
@@ -287,7 +357,12 @@ export type GetDeviceInfoOptions = {
287
357
  * "osVer": "12.0",
288
358
  * "uniVer": "x",
289
359
  * "unixVer": "4.11"
290
- * }
360
+ * },
361
+ * "harmony": {
362
+ * "osVer": "x",
363
+ * "uniVer": "x",
364
+ * "unixVer": "x"
365
+ * }
291
366
  * },
292
367
  * "web": {
293
368
  * "uniVer": "x",
@@ -298,7 +373,7 @@ export type GetDeviceInfoOptions = {
298
373
  isSimulator?: boolean,
299
374
  /**
300
375
  * adb是否开启
301
- *
376
+ *
302
377
  * @uniPlatform
303
378
  * {
304
379
  * "app": {
@@ -311,7 +386,12 @@ export type GetDeviceInfoOptions = {
311
386
  * "osVer": "x",
312
387
  * "uniVer": "x",
313
388
  * "unixVer": "x"
314
- * }
389
+ * },
390
+ * "harmony": {
391
+ * "osVer": "x",
392
+ * "uniVer": "x",
393
+ * "unixVer": "x"
394
+ * }
315
395
  * },
316
396
  * "web": {
317
397
  * "uniVer": "x",
@@ -321,8 +401,8 @@ export type GetDeviceInfoOptions = {
321
401
  */
322
402
  isUSBDebugging?: boolean,
323
403
  /**
324
- * 系统名称
325
- *
404
+ * 系统名称
405
+ *
326
406
  * @uniPlatform
327
407
  * {
328
408
  * "app": {
@@ -335,7 +415,12 @@ export type GetDeviceInfoOptions = {
335
415
  * "osVer": "12.0",
336
416
  * "uniVer": "x",
337
417
  * "unixVer": "4.18"
338
- * }
418
+ * },
419
+ * "harmony": {
420
+ * "osVer": "3.0",
421
+ * "uniVer": "4.23",
422
+ * "unixVer": "x"
423
+ * }
339
424
  * },
340
425
  * "web": {
341
426
  * "uniVer": "x",
@@ -343,10 +428,10 @@ export type GetDeviceInfoOptions = {
343
428
  * }
344
429
  * }
345
430
  */
346
- osName?: 'ios' | 'android' | 'macos' | 'windows' | 'linux' | null,
431
+ osName?: 'ios' | 'android' | 'harmonyos' | 'macos' | 'windows' | 'linux' | null,
347
432
  /**
348
433
  * 操作系统版本。如 ios 版本,andriod 版本
349
- *
434
+ *
350
435
  * @uniPlatform
351
436
  * {
352
437
  * "app": {
@@ -359,7 +444,12 @@ export type GetDeviceInfoOptions = {
359
444
  * "osVer": "12.0",
360
445
  * "uniVer": "x",
361
446
  * "unixVer": "4.18"
362
- * }
447
+ * },
448
+ * "harmony": {
449
+ * "osVer": "3.0",
450
+ * "uniVer": "4.23",
451
+ * "unixVer": "x"
452
+ * }
363
453
  * },
364
454
  * "web": {
365
455
  * "uniVer": "x",
@@ -370,7 +460,7 @@ export type GetDeviceInfoOptions = {
370
460
  osVersion?: string | null,
371
461
  /**
372
462
  * 操作系统语言
373
- *
463
+ *
374
464
  * @uniPlatform
375
465
  * {
376
466
  * "app": {
@@ -383,7 +473,12 @@ export type GetDeviceInfoOptions = {
383
473
  * "osVer": "12.0",
384
474
  * "uniVer": "x",
385
475
  * "unixVer": "4.18"
386
- * }
476
+ * },
477
+ * "harmony": {
478
+ * "osVer": "3.0",
479
+ * "uniVer": "4.23",
480
+ * "unixVer": "x"
481
+ * }
387
482
  * },
388
483
  * "web": {
389
484
  * "uniVer": "x",
@@ -394,7 +489,7 @@ export type GetDeviceInfoOptions = {
394
489
  osLanguage?: string | null,
395
490
  /**
396
491
  * 操作系统主题
397
- *
492
+ *
398
493
  * @uniPlatform
399
494
  * {
400
495
  * "app": {
@@ -407,7 +502,12 @@ export type GetDeviceInfoOptions = {
407
502
  * "osVer": "12.0",
408
503
  * "uniVer": "x",
409
504
  * "unixVer": "4.18"
410
- * }
505
+ * },
506
+ * "harmony": {
507
+ * "osVer": "3.0",
508
+ * "uniVer": "4.23",
509
+ * "unixVer": "x"
510
+ * }
411
511
  * },
412
512
  * "web": {
413
513
  * "uniVer": "x",
@@ -418,7 +518,7 @@ export type GetDeviceInfoOptions = {
418
518
  osTheme?: 'light' | 'dark' | null,
419
519
  /**
420
520
  * Android 系统API库的版本。
421
- *
521
+ *
422
522
  * @uniPlatform
423
523
  * {
424
524
  * "app": {
@@ -431,7 +531,12 @@ export type GetDeviceInfoOptions = {
431
531
  * "osVer": "x",
432
532
  * "uniVer": "x",
433
533
  * "unixVer": "x"
434
- * }
534
+ * },
535
+ * "harmony": {
536
+ * "osVer": "x",
537
+ * "uniVer": "x",
538
+ * "unixVer": "x"
539
+ * }
435
540
  * },
436
541
  * "web": {
437
542
  * "uniVer": "x",
@@ -442,7 +547,7 @@ export type GetDeviceInfoOptions = {
442
547
  osAndroidAPILevel?: number | null,
443
548
  /**
444
549
  * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
445
- *
550
+ *
446
551
  * @uniPlatform
447
552
  * {
448
553
  * "app": {
@@ -455,7 +560,12 @@ export type GetDeviceInfoOptions = {
455
560
  * "osVer": "12.0",
456
561
  * "uniVer": "x",
457
562
  * "unixVer": "4.18"
458
- * }
563
+ * },
564
+ * "harmony": {
565
+ * "osVer": "3.0",
566
+ * "uniVer": "4.23",
567
+ * "unixVer": "x"
568
+ * }
459
569
  * },
460
570
  * "web": {
461
571
  * "uniVer": "x",
@@ -466,7 +576,7 @@ export type GetDeviceInfoOptions = {
466
576
  romName?: string | null,
467
577
  /**
468
578
  * rom 版本号。Android 部分机型获取不到值。iOS 为操作系统版本号(同 `osVersion`)。
469
- *
579
+ *
470
580
  * @uniPlatform
471
581
  * {
472
582
  * "app": {
@@ -479,7 +589,12 @@ export type GetDeviceInfoOptions = {
479
589
  * "osVer": "12.0",
480
590
  * "uniVer": "x",
481
591
  * "unixVer": "4.18"
482
- * }
592
+ * },
593
+ * "harmony": {
594
+ * "osVer": "3.0",
595
+ * "uniVer": "4.23",
596
+ * "unixVer": "x"
597
+ * }
483
598
  * },
484
599
  * "web": {
485
600
  * "uniVer": "x",
@@ -489,22 +604,24 @@ export type GetDeviceInfoOptions = {
489
604
  */
490
605
  romVersion?: string | null,
491
606
  }
492
-
493
-
607
+
608
+
494
609
  /**
495
610
  * @param [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
496
611
  */
497
612
  export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
498
-
499
-
613
+
614
+
500
615
  export interface Uni {
501
616
  /**
502
617
  * GetDeviceInfo(Object object)
503
- * @description
618
+ * @description
504
619
  * 获取设备信息
505
620
  * @param {GetDeviceInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
506
621
  * @return {object}
507
- * @tutorial https://uniapp.dcloud.net.cn/api/system/getDeviceInfo.html
622
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getDeviceInfo.html
623
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-device-info.html
624
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-device-info.html
508
625
  * @uniPlatform
509
626
  * {
510
627
  * "app": {
@@ -517,7 +634,12 @@ export type GetDeviceInfoOptions = {
517
634
  * "osVer": "12.0",
518
635
  * "uniVer": "√",
519
636
  * "unixVer": "4.11"
520
- * }
637
+ * },
638
+ * "harmony": {
639
+ * "osVer": "3.0",
640
+ * "uniVer": "4.23",
641
+ * "unixVer": "x"
642
+ * }
521
643
  * },
522
644
  * "web": {
523
645
  * "uniVer": "√",
@@ -533,4 +655,3 @@ export type GetDeviceInfoOptions = {
533
655
  */
534
656
  getDeviceInfo(options?: GetDeviceInfoOptions | null): GetDeviceInfoResult;
535
657
  }
536
-
@@ -6,6 +6,7 @@ export interface Uni {
6
6
  * 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
7
7
  * ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
8
8
  *
9
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
9
10
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
10
11
  * @uniPlatform {
11
12
  * "app": {
@@ -18,7 +19,12 @@ export interface Uni {
18
19
  * "osVer": "12.0",
19
20
  * "uniVer": "x",
20
21
  * "unixVer": "4.11"
21
- * }
22
+ * },
23
+ * "harmony": {
24
+ * "osVer": "x",
25
+ * "uniVer": "x",
26
+ * "unixVer": "x"
27
+ * }
22
28
  * },
23
29
  * "mp": {
24
30
  * "weixin": {
@@ -1,5 +1,7 @@
1
1
  export type OnLaunchOptions = {
2
- path: string
2
+ path: string,
3
+ appScheme: string | null,
4
+ appLink: string | null
3
5
  }
4
6
 
5
7
  export type GetLaunchOptionsSync = () => OnLaunchOptions
@@ -8,6 +10,8 @@ export interface Uni {
8
10
  /**
9
11
  * 获取本次启动时的参数。返回值与App.onLaunch的回调参数一致
10
12
  *
13
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
14
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
11
15
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
12
16
  * @uniPlatform {
13
17
  * "app": {
@@ -20,6 +24,11 @@ export interface Uni {
20
24
  * "osVer": "12.0",
21
25
  * "uniVer": "√",
22
26
  * "unixVer": "4.11"
27
+ * },
28
+ * "harmony": {
29
+ * "osVer": "x",
30
+ * "uniVer": "x",
31
+ * "unixVer": "x"
23
32
  * }
24
33
  * },
25
34
  * "mp": {
@@ -0,0 +1,24 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ GetLocationFailImpl as GetLocationFailImplOrigin,
4
+ UniLocationProvider as UniLocationProviderOrigin,
5
+ LocationErrorCode as LocationErrorCodeOrigin,
6
+ IGetLocationFail as IGetLocationFailOrigin,
7
+ GetLocationFail as GetLocationFailOrigin,
8
+ GetLocation as GetLocationOrigin,
9
+ GetLocationSuccess as GetLocationSuccessOrigin,
10
+ GetLocationOptions as GetLocationOptionsOrigin,
11
+ Uni as UniOrigin
12
+ } from './interface'
13
+
14
+ declare global {
15
+ type GetLocationFailImpl = GetLocationFailImplOrigin
16
+ type UniLocationProvider = UniLocationProviderOrigin
17
+ type LocationErrorCode = LocationErrorCodeOrigin
18
+ type IGetLocationFail = IGetLocationFailOrigin
19
+ type GetLocationFail = GetLocationFailOrigin
20
+ type GetLocation = GetLocationOrigin
21
+ type GetLocationSuccess = GetLocationSuccessOrigin
22
+ type GetLocationOptions = GetLocationOptionsOrigin
23
+ interface Uni extends UniOrigin { }
24
+ }
@@ -0,0 +1,11 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ GetLocationFailImpl,
4
+ UniLocationProvider,
5
+ LocationErrorCode,
6
+ IGetLocationFail,
7
+ GetLocationFail,
8
+ GetLocation,
9
+ GetLocationSuccess,
10
+ GetLocationOptions,
11
+ } from './interface'