@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
@@ -8,6 +8,7 @@ import {
8
8
  StartPullDownRefreshFailCallback as StartPullDownRefreshFailCallbackOrigin,
9
9
  StartPullDownRefreshComplete as StartPullDownRefreshCompleteOrigin,
10
10
  StartPullDownRefreshCompleteCallback as StartPullDownRefreshCompleteCallbackOrigin,
11
+ StartPullDownRefresh as StartPullDownRefreshOrigin,
11
12
  StopPullDownRefresh as StopPullDownRefreshOrigin,
12
13
  Uni as UniOrigin
13
14
  } from './interface'
@@ -21,6 +22,7 @@ declare global {
21
22
  type StartPullDownRefreshFailCallback = StartPullDownRefreshFailCallbackOrigin
22
23
  type StartPullDownRefreshComplete = StartPullDownRefreshCompleteOrigin
23
24
  type StartPullDownRefreshCompleteCallback = StartPullDownRefreshCompleteCallbackOrigin
25
+ type StartPullDownRefresh = StartPullDownRefreshOrigin
24
26
  type StopPullDownRefresh = StopPullDownRefreshOrigin
25
27
  interface Uni extends UniOrigin { }
26
28
  }
@@ -8,5 +8,6 @@ export {
8
8
  StartPullDownRefreshFailCallback,
9
9
  StartPullDownRefreshComplete,
10
10
  StartPullDownRefreshCompleteCallback,
11
+ StartPullDownRefresh,
11
12
  StopPullDownRefresh,
12
13
  } from './interface'
@@ -33,6 +33,7 @@ export type StartPullDownRefreshComplete = AsyncApiResult
33
33
  export type StartPullDownRefreshCompleteCallback = (
34
34
  result: StartPullDownRefreshComplete,
35
35
  ) => void
36
+ export type StartPullDownRefresh = (options: StartPullDownRefreshOptions) => void
36
37
 
37
38
  export type StopPullDownRefresh = () => void
38
39
 
@@ -40,7 +41,9 @@ export interface Uni {
40
41
  /**
41
42
  * 开始下拉刷新
42
43
  *
43
- * @tutorial https://uniapp.dcloud.io/uni-app-x/api/pull-down-refresh.html#startpulldownrefresh
44
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/pulldown.html#startpulldownrefresh
45
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#startpulldownrefresh
46
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#startpulldownrefresh
44
47
  * @uniPlatform {
45
48
  * "app": {
46
49
  * "android": {
@@ -52,6 +55,11 @@ export interface Uni {
52
55
  * "osVer": "12.0",
53
56
  * "uniVer": "√",
54
57
  * "unixVer": "4.11"
58
+ * },
59
+ * "harmony": {
60
+ * "osVer": "3.0",
61
+ * "uniVer": "4.23",
62
+ * "unixVer": "x"
55
63
  * }
56
64
  * },
57
65
  * "mp": {
@@ -108,6 +116,8 @@ export interface Uni {
108
116
  /**
109
117
  * 停止当前页面下拉刷新
110
118
  *
119
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/pulldown.html#stoppulldownrefresh
120
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#stoppulldownrefresh
111
121
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#stoppulldownrefresh
112
122
  * @uniPlatform {
113
123
  * "app": {
@@ -120,6 +130,11 @@ export interface Uni {
120
130
  * "osVer": "12.0",
121
131
  * "uniVer": "√",
122
132
  * "unixVer": "4.11"
133
+ * },
134
+ * "harmony": {
135
+ * "osVer": "3.0",
136
+ * "uniVer": "4.23",
137
+ * "unixVer": "x"
123
138
  * }
124
139
  * },
125
140
  * "mp": {
@@ -31,7 +31,12 @@ export type NavigateToOptions = {
31
31
  * "osVer": "12.0",
32
32
  * "uniVer": "√",
33
33
  * "unixVer": "4.11"
34
- * }
34
+ * },
35
+ * "harmony": {
36
+ * "osVer": "3.0",
37
+ * "uniVer": "4.23",
38
+ * "unixVer": "x"
39
+ * }
35
40
  * },
36
41
  * "mp": {
37
42
  * "weixin": {
@@ -106,7 +111,12 @@ export type NavigateToOptions = {
106
111
  * "osVer": "12.0",
107
112
  * "uniVer": "√",
108
113
  * "unixVer": "x"
109
- * }
114
+ * },
115
+ * "harmony": {
116
+ * "osVer": "3.0",
117
+ * "uniVer": "4.23",
118
+ * "unixVer": "x"
119
+ * }
110
120
  * },
111
121
  * "mp": {
112
122
  * "weixin": {
@@ -170,7 +180,12 @@ export type NavigateToOptions = {
170
180
  * "osVer": "12.0",
171
181
  * "uniVer": "√",
172
182
  * "unixVer": "x"
173
- * }
183
+ * },
184
+ * "harmony": {
185
+ * "osVer": "3.0",
186
+ * "uniVer": "4.23",
187
+ * "unixVer": "x"
188
+ * }
174
189
  * },
175
190
  * "mp": {
176
191
  * "weixin": {
@@ -234,7 +249,12 @@ export type NavigateToOptions = {
234
249
  * "osVer": "12.0",
235
250
  * "uniVer": "√",
236
251
  * "unixVer": "x"
237
- * }
252
+ * },
253
+ * "harmony": {
254
+ * "osVer": "3.0",
255
+ * "uniVer": "4.23",
256
+ * "unixVer": "x"
257
+ * }
238
258
  * },
239
259
  * "mp": {
240
260
  * "weixin": {
@@ -285,6 +305,70 @@ export type NavigateToOptions = {
285
305
  * }
286
306
  */
287
307
  events?: any | null
308
+ /**
309
+ * 自定义路由配置
310
+ * @uniPlatform {
311
+ * "app": {
312
+ * "android": {
313
+ * "osVer": "5.0",
314
+ * "uniVer": "x",
315
+ * "unixVer": "x"
316
+ * },
317
+ * "ios": {
318
+ * "osVer": "12.0",
319
+ * "uniVer": "x",
320
+ * "unixVer": "x"
321
+ * }
322
+ * },
323
+ * "mp": {
324
+ * "weixin": {
325
+ * "hostVer": "√",
326
+ * "uniVer": "x",
327
+ * "unixVer": "x"
328
+ * },
329
+ * "alipay": {
330
+ * "hostVer": "√",
331
+ * "uniVer": "x",
332
+ * "unixVer": "x"
333
+ * },
334
+ * "baidu": {
335
+ * "hostVer": "√",
336
+ * "uniVer": "x",
337
+ * "unixVer": "x"
338
+ * },
339
+ * "toutiao": {
340
+ * "hostVer": "√",
341
+ * "uniVer": "x",
342
+ * "unixVer": "x"
343
+ * },
344
+ * "lark": {
345
+ * "hostVer": "√",
346
+ * "uniVer": "x",
347
+ * "unixVer": "x"
348
+ * },
349
+ * "qq": {
350
+ * "hostVer": "√",
351
+ * "uniVer": "x",
352
+ * "unixVer": "x"
353
+ * },
354
+ * "kuaishou": {
355
+ * "hostVer": "√",
356
+ * "uniVer": "x",
357
+ * "unixVer": "x"
358
+ * },
359
+ * "jd": {
360
+ * "hostVer": "√",
361
+ * "uniVer": "x",
362
+ * "unixVer": "x"
363
+ * }
364
+ * },
365
+ * "web": {
366
+ * "uniVer": "x",
367
+ * "unixVer": "x"
368
+ * }
369
+ * }
370
+ */
371
+ dialog?: Map<string, any | null> | null
288
372
  /**
289
373
  * 接口调用成功的回调函数
290
374
  * @uniPlatform {
@@ -298,7 +382,12 @@ export type NavigateToOptions = {
298
382
  * "osVer": "12.0",
299
383
  * "uniVer": "√",
300
384
  * "unixVer": "4.11"
301
- * }
385
+ * },
386
+ * "harmony": {
387
+ * "osVer": "3.0",
388
+ * "uniVer": "4.23",
389
+ * "unixVer": "x"
390
+ * }
302
391
  * },
303
392
  * "mp": {
304
393
  * "weixin": {
@@ -362,7 +451,12 @@ export type NavigateToOptions = {
362
451
  * "osVer": "12.0",
363
452
  * "uniVer": "√",
364
453
  * "unixVer": "4.11"
365
- * }
454
+ * },
455
+ * "harmony": {
456
+ * "osVer": "3.0",
457
+ * "uniVer": "4.23",
458
+ * "unixVer": "x"
459
+ * }
366
460
  * },
367
461
  * "mp": {
368
462
  * "weixin": {
@@ -426,7 +520,12 @@ export type NavigateToOptions = {
426
520
  * "osVer": "12.0",
427
521
  * "uniVer": "√",
428
522
  * "unixVer": "4.11"
429
- * }
523
+ * },
524
+ * "harmony": {
525
+ * "osVer": "3.0",
526
+ * "uniVer": "4.23",
527
+ * "unixVer": "x"
528
+ * }
430
529
  * },
431
530
  * "mp": {
432
531
  * "weixin": {
@@ -500,7 +599,12 @@ export type RedirectToOptions = {
500
599
  * "osVer": "12.0",
501
600
  * "uniVer": "√",
502
601
  * "unixVer": "4.11"
503
- * }
602
+ * },
603
+ * "harmony": {
604
+ * "osVer": "3.0",
605
+ * "uniVer": "4.23",
606
+ * "unixVer": "x"
607
+ * }
504
608
  * },
505
609
  * "mp": {
506
610
  * "weixin": {
@@ -564,7 +668,12 @@ export type RedirectToOptions = {
564
668
  * "osVer": "12.0",
565
669
  * "uniVer": "√",
566
670
  * "unixVer": "4.11"
567
- * }
671
+ * },
672
+ * "harmony": {
673
+ * "osVer": "3.0",
674
+ * "uniVer": "4.23",
675
+ * "unixVer": "x"
676
+ * }
568
677
  * },
569
678
  * "mp": {
570
679
  * "weixin": {
@@ -628,7 +737,12 @@ export type RedirectToOptions = {
628
737
  * "osVer": "12.0",
629
738
  * "uniVer": "√",
630
739
  * "unixVer": "4.11"
631
- * }
740
+ * },
741
+ * "harmony": {
742
+ * "osVer": "3.0",
743
+ * "uniVer": "4.23",
744
+ * "unixVer": "x"
745
+ * }
632
746
  * },
633
747
  * "mp": {
634
748
  * "weixin": {
@@ -692,7 +806,12 @@ export type RedirectToOptions = {
692
806
  * "osVer": "12.0",
693
807
  * "uniVer": "√",
694
808
  * "unixVer": "4.11"
695
- * }
809
+ * },
810
+ * "harmony": {
811
+ * "osVer": "3.0",
812
+ * "uniVer": "4.23",
813
+ * "unixVer": "x"
814
+ * }
696
815
  * },
697
816
  * "mp": {
698
817
  * "weixin": {
@@ -766,7 +885,12 @@ export type ReLaunchOptions = {
766
885
  * "osVer": "12.0",
767
886
  * "uniVer": "√",
768
887
  * "unixVer": "4.11"
769
- * }
888
+ * },
889
+ * "harmony": {
890
+ * "osVer": "3.0",
891
+ * "uniVer": "4.23",
892
+ * "unixVer": "x"
893
+ * }
770
894
  * },
771
895
  * "mp": {
772
896
  * "weixin": {
@@ -830,7 +954,12 @@ export type ReLaunchOptions = {
830
954
  * "osVer": "12.0",
831
955
  * "uniVer": "√",
832
956
  * "unixVer": "4.11"
833
- * }
957
+ * },
958
+ * "harmony": {
959
+ * "osVer": "3.0",
960
+ * "uniVer": "4.23",
961
+ * "unixVer": "x"
962
+ * }
834
963
  * },
835
964
  * "mp": {
836
965
  * "weixin": {
@@ -894,7 +1023,12 @@ export type ReLaunchOptions = {
894
1023
  * "osVer": "12.0",
895
1024
  * "uniVer": "√",
896
1025
  * "unixVer": "4.11"
897
- * }
1026
+ * },
1027
+ * "harmony": {
1028
+ * "osVer": "3.0",
1029
+ * "uniVer": "4.23",
1030
+ * "unixVer": "x"
1031
+ * }
898
1032
  * },
899
1033
  * "mp": {
900
1034
  * "weixin": {
@@ -958,7 +1092,12 @@ export type ReLaunchOptions = {
958
1092
  * "osVer": "12.0",
959
1093
  * "uniVer": "√",
960
1094
  * "unixVer": "4.11"
961
- * }
1095
+ * },
1096
+ * "harmony": {
1097
+ * "osVer": "3.0",
1098
+ * "uniVer": "4.23",
1099
+ * "unixVer": "x"
1100
+ * }
962
1101
  * },
963
1102
  * "mp": {
964
1103
  * "weixin": {
@@ -1034,7 +1173,12 @@ export type SwitchTabOptions = {
1034
1173
  * "osVer": "12.0",
1035
1174
  * "uniVer": "√",
1036
1175
  * "unixVer": "4.11"
1037
- * }
1176
+ * },
1177
+ * "harmony": {
1178
+ * "osVer": "3.0",
1179
+ * "uniVer": "4.23",
1180
+ * "unixVer": "x"
1181
+ * }
1038
1182
  * },
1039
1183
  * "mp": {
1040
1184
  * "weixin": {
@@ -1098,7 +1242,12 @@ export type SwitchTabOptions = {
1098
1242
  * "osVer": "12.0",
1099
1243
  * "uniVer": "√",
1100
1244
  * "unixVer": "4.11"
1101
- * }
1245
+ * },
1246
+ * "harmony": {
1247
+ * "osVer": "3.0",
1248
+ * "uniVer": "4.23",
1249
+ * "unixVer": "x"
1250
+ * }
1102
1251
  * },
1103
1252
  * "mp": {
1104
1253
  * "weixin": {
@@ -1162,7 +1311,12 @@ export type SwitchTabOptions = {
1162
1311
  * "osVer": "12.0",
1163
1312
  * "uniVer": "√",
1164
1313
  * "unixVer": "4.11"
1165
- * }
1314
+ * },
1315
+ * "harmony": {
1316
+ * "osVer": "3.0",
1317
+ * "uniVer": "4.23",
1318
+ * "unixVer": "x"
1319
+ * }
1166
1320
  * },
1167
1321
  * "mp": {
1168
1322
  * "weixin": {
@@ -1226,7 +1380,12 @@ export type SwitchTabOptions = {
1226
1380
  * "osVer": "12.0",
1227
1381
  * "uniVer": "√",
1228
1382
  * "unixVer": "4.11"
1229
- * }
1383
+ * },
1384
+ * "harmony": {
1385
+ * "osVer": "3.0",
1386
+ * "uniVer": "4.23",
1387
+ * "unixVer": "x"
1388
+ * }
1230
1389
  * },
1231
1390
  * "mp": {
1232
1391
  * "weixin": {
@@ -1300,7 +1459,12 @@ export type NavigateBackOptions = {
1300
1459
  * "osVer": "12.0",
1301
1460
  * "uniVer": "√",
1302
1461
  * "unixVer": "4.11"
1303
- * }
1462
+ * },
1463
+ * "harmony": {
1464
+ * "osVer": "3.0",
1465
+ * "uniVer": "4.23",
1466
+ * "unixVer": "x"
1467
+ * }
1304
1468
  * },
1305
1469
  * "mp": {
1306
1470
  * "weixin": {
@@ -1567,7 +1731,12 @@ export type NavigateBackOptions = {
1567
1731
  * "osVer": "12.0",
1568
1732
  * "uniVer": "√",
1569
1733
  * "unixVer": "4.11"
1570
- * }
1734
+ * },
1735
+ * "harmony": {
1736
+ * "osVer": "3.0",
1737
+ * "uniVer": "4.23",
1738
+ * "unixVer": "x"
1739
+ * }
1571
1740
  * },
1572
1741
  * "mp": {
1573
1742
  * "weixin": {
@@ -1631,7 +1800,12 @@ export type NavigateBackOptions = {
1631
1800
  * "osVer": "12.0",
1632
1801
  * "uniVer": "√",
1633
1802
  * "unixVer": "4.11"
1634
- * }
1803
+ * },
1804
+ * "harmony": {
1805
+ * "osVer": "3.0",
1806
+ * "uniVer": "4.23",
1807
+ * "unixVer": "x"
1808
+ * }
1635
1809
  * },
1636
1810
  * "mp": {
1637
1811
  * "weixin": {
@@ -1688,7 +1862,9 @@ export interface Uni {
1688
1862
  /**
1689
1863
  * 保留当前页面,跳转到应用内的某个页面
1690
1864
  *
1691
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateto
1865
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#navigateto
1866
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateto
1867
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateto
1692
1868
  * @uniPlatform {
1693
1869
  * "app": {
1694
1870
  * "android": {
@@ -1700,7 +1876,12 @@ export interface Uni {
1700
1876
  * "osVer": "12.0",
1701
1877
  * "uniVer": "√",
1702
1878
  * "unixVer": "4.11"
1703
- * }
1879
+ * },
1880
+ * "harmony": {
1881
+ * "osVer": "3.0",
1882
+ * "uniVer": "4.23",
1883
+ * "unixVer": "x"
1884
+ * }
1704
1885
  * },
1705
1886
  * "mp": {
1706
1887
  * "weixin": {
@@ -1754,7 +1935,9 @@ export interface Uni {
1754
1935
  /**
1755
1936
  * 关闭当前页面,跳转到应用内的某个页面
1756
1937
  *
1757
- * @tutorial http://uniapp.dcloud.io/api/router?id=redirectto
1938
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#redirectto
1939
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#redirectto
1940
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#redirectto
1758
1941
  * @uniPlatform {
1759
1942
  * "app": {
1760
1943
  * "android": {
@@ -1766,7 +1949,12 @@ export interface Uni {
1766
1949
  * "osVer": "12.0",
1767
1950
  * "uniVer": "√",
1768
1951
  * "unixVer": "4.11"
1769
- * }
1952
+ * },
1953
+ * "harmony": {
1954
+ * "osVer": "3.0",
1955
+ * "uniVer": "4.23",
1956
+ * "unixVer": "x"
1957
+ * }
1770
1958
  * },
1771
1959
  * "mp": {
1772
1960
  * "weixin": {
@@ -1820,7 +2008,9 @@ export interface Uni {
1820
2008
  /**
1821
2009
  * 关闭所有页面,打开到应用内的某个页面
1822
2010
  *
1823
- * @tutorial http://uniapp.dcloud.io/api/router?id=relaunch
2011
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#relaunch
2012
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#relaunch
2013
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#relaunch
1824
2014
  * @uniPlatform {
1825
2015
  * "app": {
1826
2016
  * "android": {
@@ -1832,7 +2022,12 @@ export interface Uni {
1832
2022
  * "osVer": "12.0",
1833
2023
  * "uniVer": "√",
1834
2024
  * "unixVer": "4.11"
1835
- * }
2025
+ * },
2026
+ * "harmony": {
2027
+ * "osVer": "3.0",
2028
+ * "uniVer": "4.23",
2029
+ * "unixVer": "x"
2030
+ * }
1836
2031
  * },
1837
2032
  * "mp": {
1838
2033
  * "weixin": {
@@ -1886,7 +2081,9 @@ export interface Uni {
1886
2081
  /**
1887
2082
  * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
1888
2083
  *
1889
- * @tutorial http://uniapp.dcloud.io/api/router?id=switchtab
2084
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#switchtab
2085
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#switchtab
2086
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#switchtab
1890
2087
  * @uniPlatform {
1891
2088
  * "app": {
1892
2089
  * "android": {
@@ -1898,7 +2095,12 @@ export interface Uni {
1898
2095
  * "osVer": "12.0",
1899
2096
  * "uniVer": "√",
1900
2097
  * "unixVer": "4.11"
1901
- * }
2098
+ * },
2099
+ * "harmony": {
2100
+ * "osVer": "3.0",
2101
+ * "uniVer": "4.23",
2102
+ * "unixVer": "x"
2103
+ * }
1902
2104
  * },
1903
2105
  * "mp": {
1904
2106
  * "weixin": {
@@ -1952,7 +2154,9 @@ export interface Uni {
1952
2154
  /**
1953
2155
  * 关闭当前页面,返回上一页面或多级页面
1954
2156
  *
1955
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateback
2157
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/router.html#navigateback
2158
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateback
2159
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/navigator.html#navigateback
1956
2160
  * @uniPlatform {
1957
2161
  * "app": {
1958
2162
  * "android": {
@@ -1964,7 +2168,12 @@ export interface Uni {
1964
2168
  * "osVer": "12.0",
1965
2169
  * "uniVer": "√",
1966
2170
  * "unixVer": "4.11"
1967
- * }
2171
+ * },
2172
+ * "harmony": {
2173
+ * "osVer": "3.0",
2174
+ * "uniVer": "4.23",
2175
+ * "unixVer": "x"
2176
+ * }
1968
2177
  * },
1969
2178
  * "mp": {
1970
2179
  * "weixin": {
@@ -3,8 +3,8 @@ export type Rpx2px = (number : number) => number;
3
3
  export interface Uni {
4
4
  /**
5
5
  * 将rpx单位值转换成px
6
- * @param {number} rpx
7
- * @return {number} px
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/font.html#upx2px
7
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
8
8
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
9
9
  * @uniPlatform {
10
10
  * "app": {
@@ -17,6 +17,11 @@ export interface Uni {
17
17
  * "osVer": "12.0",
18
18
  * "uniVer": "√",
19
19
  * "unixVer": "4.11"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.23",
24
+ * "unixVer": "x"
20
25
  * }
21
26
  * },
22
27
  * "web": {
@@ -0,0 +1,24 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ ScanCodeSuccess as ScanCodeSuccessOrigin,
4
+ ScanCodeFail as ScanCodeFailOrigin,
5
+ ScanCodeSuccessCallback as ScanCodeSuccessCallbackOrigin,
6
+ ScanCodeFailCallback as ScanCodeFailCallbackOrigin,
7
+ ScanCodeCompleteCallback as ScanCodeCompleteCallbackOrigin,
8
+ ScanCodeSupportedTypes as ScanCodeSupportedTypesOrigin,
9
+ ScanCodeOptions as ScanCodeOptionsOrigin,
10
+ ScanCode as ScanCodeOrigin,
11
+ Uni as UniOrigin
12
+ } from './interface'
13
+
14
+ declare global {
15
+ type ScanCodeSuccess = ScanCodeSuccessOrigin
16
+ type ScanCodeFail = ScanCodeFailOrigin
17
+ type ScanCodeSuccessCallback = ScanCodeSuccessCallbackOrigin
18
+ type ScanCodeFailCallback = ScanCodeFailCallbackOrigin
19
+ type ScanCodeCompleteCallback = ScanCodeCompleteCallbackOrigin
20
+ type ScanCodeSupportedTypes = ScanCodeSupportedTypesOrigin
21
+ type ScanCodeOptions = ScanCodeOptionsOrigin
22
+ type ScanCode = ScanCodeOrigin
23
+ interface Uni extends UniOrigin { }
24
+ }
@@ -0,0 +1,11 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ ScanCodeSuccess,
4
+ ScanCodeFail,
5
+ ScanCodeSuccessCallback,
6
+ ScanCodeFailCallback,
7
+ ScanCodeCompleteCallback,
8
+ ScanCodeSupportedTypes,
9
+ ScanCodeOptions,
10
+ ScanCode,
11
+ } from './interface'