@dcloudio/uni-app-x 0.7.13 → 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 (187) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/app.d.ts +5 -6
  4. package/types/index.d.ts +1 -1
  5. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  6. package/types/native/IUniElement.d.ts +40 -12
  7. package/types/native/Path2D.d.ts +74 -0
  8. package/types/native/UniApp.d.ts +17 -1
  9. package/types/native/UniCanvasElement.d.ts +9 -0
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +31 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniProvider.d.ts +14 -0
  14. package/types/native/UniResizeObserver.d.ts +10 -10
  15. package/types/native/UniScrollEvent.d.ts +1 -1
  16. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  17. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  18. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  19. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  20. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  21. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  22. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  23. package/types/native/global.d.ts +40 -9
  24. package/types/native/index.d.ts +4 -0
  25. package/types/page.d.ts +85 -0
  26. package/types/shim-uts-basic.d.ts +4495 -0
  27. package/types/uni/env/index.d.ts +21 -0
  28. package/types/uni/global.d.ts +1 -0
  29. package/types/uni/index.d.ts +2 -1
  30. package/types/uni/uts-plugin-api/global.d.ts +14 -2
  31. package/types/uni/uts-plugin-api/index.d.ts +14 -2
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  33. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  34. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  36. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  37. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  38. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  39. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  41. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  42. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  43. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  44. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  45. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  46. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  47. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
  48. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
  49. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  50. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  51. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
  52. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  53. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +111 -27
  54. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
  55. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
  56. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  57. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  61. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  62. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  63. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  64. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  65. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -5
  68. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
  69. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +176 -72
  72. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
  73. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
  74. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  75. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  76. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  77. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  78. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  79. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  80. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
  81. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
  82. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
  83. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +459 -67
  86. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  87. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
  88. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  89. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  90. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  91. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  92. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  95. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +26 -16
  96. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  97. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  98. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  99. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  100. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  101. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  102. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  103. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  104. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  105. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  106. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +251 -42
  107. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  108. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  109. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  110. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  111. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +114 -45
  112. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  113. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  114. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +167 -7
  115. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  116. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  117. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
  118. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
  119. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  120. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  121. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
  122. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  123. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -394
  126. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
  127. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  128. package/types/uni/uts-plugin-extend/README.md +3 -0
  129. package/types/uni/uts-plugin-extend/global.d.ts +13 -0
  130. package/types/uni/uts-plugin-extend/index.d.ts +13 -0
  131. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  132. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  133. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  134. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  135. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  136. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  137. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  138. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  139. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  140. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  141. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  142. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  143. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  144. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  145. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  146. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  147. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  153. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  154. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  155. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  156. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  157. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  158. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  159. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  160. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  161. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  162. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  163. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  164. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  165. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  166. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  167. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  168. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  169. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  170. package/types/uni-cloud/index.d.ts +4 -0
  171. package/types/uni-cloud/interface.d.ts +163 -20
  172. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  173. package/types/vue/LifeCycle.d.ts +32 -32
  174. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  175. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  176. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  177. package/types/vue/SliderChangeEvent.d.ts +9 -10
  178. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  179. package/types/vue/UniCloudDBElement.d.ts +72 -75
  180. package/types/vue/UniFormElement.d.ts +17 -19
  181. package/types/vue/UniNavigatorElement.d.ts +1 -2
  182. package/types/vue/global.d.ts +190 -0
  183. package/types/vue/index.d.ts +10 -11
  184. package/types/vue-global/index.d.ts +1 -0
  185. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  186. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  187. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -643
@@ -24,17 +24,21 @@ type UniCloudInitOptions = {
24
24
  */
25
25
  endpoint ?: string
26
26
  /**
27
- * 支付宝小程序云spaceAppId
27
+ * 支付宝云spaceAppId
28
28
  */
29
29
  spaceAppId ?: string
30
30
  /**
31
- * 支付宝小程序云accessKey
31
+ * 支付宝云accessKey
32
32
  */
33
33
  accessKey ?: string
34
34
  /**
35
- * 支付宝小程序云secretKey
35
+ * 支付宝云secretKey
36
36
  */
37
37
  secretKey ?: string
38
+ /**
39
+ * 支付宝云 WebSocket Endpoint
40
+ */
41
+ wsEndpoint ?: string
38
42
  };
39
43
  type UniCloudCallFunctionOptions = {
40
44
  /**
@@ -210,6 +214,30 @@ type UniCloudDBCountResult = {
210
214
  */
211
215
  requestId?: string;
212
216
  };
217
+ type UniCloudDBMultiSendResultItem = {
218
+ /**
219
+ * 错误码,可能为字符串或数字,数字0表示成功
220
+ */
221
+ errCode : any
222
+ /**
223
+ * 错误信息
224
+ */
225
+ errMsg : string
226
+ /**
227
+ * 数据
228
+ */
229
+ data ?: Array<UTSJSONObject>
230
+ }
231
+ type UniCloudDBMultiSendResult = {
232
+ /**
233
+ * 数据列表
234
+ */
235
+ dataList : UniCloudDBMultiSendResultItem[]
236
+ /**
237
+ * 请求id
238
+ */
239
+ requestId ?: string
240
+ }
213
241
  type UniCloudUserInfo = {
214
242
  /**
215
243
  * 用户id
@@ -235,6 +263,28 @@ declare class UniCloudError extends Error {
235
263
  errCode: any;
236
264
  errSubject?: string;
237
265
  requestId?: string;
266
+ /**
267
+ * 错误详情
268
+ * @description 合并查询请求
269
+ * @uniPlatform {
270
+ * "app": {
271
+ * "android": {
272
+ * "osVer": "5.0",
273
+ * "uniVer": "√",
274
+ * "unixVer": "4.24"
275
+ * },
276
+ * "ios": {
277
+ * "uniVer": "√",
278
+ * "unixVer": "4.11"
279
+ * }
280
+ * },
281
+ * "web": {
282
+ * "uniVer": "√",
283
+ * "unixVer": "4.0"
284
+ * }
285
+ * }
286
+ */
287
+ detail?: UTSJSONObject;
238
288
  constructor(message: string, code: string, subject?: string, options?: UTSJSONObject);
239
289
  private _init;
240
290
  toJson(): UTSJSONObject;
@@ -553,18 +603,40 @@ declare class Database {
553
603
  collection(...args: Array<any>): Collection;
554
604
  get command(): typeof UniCloudDBCommand;
555
605
  get Geo(): typeof UniCloudDBGeo;
606
+ /**
607
+ * 合并查询请求
608
+ * @description 合并查询请求
609
+ * @uniPlatform {
610
+ * "app": {
611
+ * "android": {
612
+ * "osVer": "5.0",
613
+ * "uniVer": "√",
614
+ * "unixVer": "4.16"
615
+ * },
616
+ * "ios": {
617
+ * "uniVer": "√",
618
+ * "unixVer": "4.11"
619
+ * }
620
+ * },
621
+ * "web": {
622
+ * "uniVer": "√",
623
+ * "unixVer": "4.0"
624
+ * }
625
+ * }
626
+ */
627
+ multiSend(...args: Array<UTSJSONObject>): Promise<UniCloudDBMultiSendResult>;
556
628
  }
557
629
 
558
630
  type UniCloudChooseAndUploadFileOptions = {
559
- sourceType?: Array<string> | null;
631
+ sourceType?: Array<'album' | 'camera'> | null;
560
632
  count?: number | null;
561
- sizeType?: Array<string> | null;
633
+ sizeType?: Array<'original' | 'compressed'> | null;
562
634
  extension?: Array<string> | null;
563
635
  compressed?: boolean | null;
564
636
  maxDuration?: number | null;
565
- camera?: string | null;
637
+ camera?: 'front' | 'back' | null;
566
638
  crop?: ChooseImageCropOptions | null;
567
- type: string;
639
+ type: 'image' | 'video' | 'all';
568
640
  onChooseFile?: (arg: UniCloudChooseFileResult) => void | null;
569
641
  onUploadProgress?: (arg: UniCloudChooseAndUploadFileProgressEvent) => void | null;
570
642
  };
@@ -591,6 +663,12 @@ type UniCloudChooseFileItem = {
591
663
  url?: string | null;
592
664
  errMsg?: string | null;
593
665
  };
666
+ type UniCloudConnectWebSocketOptions = {
667
+ /** WebSocket云函数/云对象名称 */
668
+ name: string;
669
+ /** 建立连接时需要传递的参数, 仅在 connection 事件中接收到 */
670
+ query?: UTSJSONObject;
671
+ }
594
672
 
595
673
  declare class UniCloud {
596
674
  private _client;
@@ -599,6 +677,49 @@ declare class UniCloud {
599
677
  config: UniCloudInitOptions;
600
678
  mixinDatacom: typeof mixinDatacom;
601
679
  constructor(options: UniCloudInitOptions);
680
+ // /**
681
+ // * 连接其他服务空间
682
+ // * @uniPlatform {
683
+ // * "app": {
684
+ // * "android": {
685
+ // * "osVer": "5.0",
686
+ // * "uniVer": "√",
687
+ // * "unixVer": "4.18"
688
+ // * },
689
+ // * "ios": {
690
+ // * "uniVer": "√",
691
+ // * "unixVer": "4.11"
692
+ // * }
693
+ // * },
694
+ // * "web": {
695
+ // * "uniVer": "√",
696
+ // * "unixVer": "4.0"
697
+ // * }
698
+ // * }
699
+ // */
700
+ // init(options: UniCloudInitOptions): UniCloud;
701
+
702
+ /**
703
+ * 设置
704
+ * @uniPlatform {
705
+ * "app": {
706
+ * "android": {
707
+ * "uniVer": "4.21",
708
+ * "unixVer": "4.21"
709
+ * },
710
+ * "ios": {
711
+ * "uniVer": "4.21",
712
+ * "unixVer": "4.21"
713
+ * }
714
+ * },
715
+ * "web": {
716
+ * "uniVer": "4.21",
717
+ * "unixVer": "4.21"
718
+ * }
719
+ * }
720
+ */
721
+ setCustomClientInfo(info: UTSJSONObject): void;
722
+
602
723
  /**
603
724
  * 请求云函数
604
725
  * @description 请求云函数
@@ -607,7 +728,7 @@ declare class UniCloud {
607
728
  * "android": {
608
729
  * "osVer": "5.0",
609
730
  * "uniVer": "√",
610
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
731
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
611
732
  * },
612
733
  * "ios": {
613
734
  * "uniVer": "√",
@@ -620,7 +741,7 @@ declare class UniCloud {
620
741
  * }
621
742
  * }
622
743
  */
623
- callFunction(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult>;
744
+ callFunction<T = UTSJSONObject>(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult<T>>;
624
745
  /**
625
746
  * 上传文件到云存储
626
747
  * @description 上传文件到云存储
@@ -629,7 +750,7 @@ declare class UniCloud {
629
750
  * "android": {
630
751
  * "osVer": "5.0",
631
752
  * "uniVer": "√",
632
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
753
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
633
754
  * },
634
755
  * "ios": {
635
756
  * "uniVer": "√",
@@ -651,7 +772,7 @@ declare class UniCloud {
651
772
  * "android": {
652
773
  * "osVer": "5.0",
653
774
  * "uniVer": "√",
654
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
775
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
655
776
  * },
656
777
  * "ios": {
657
778
  * "uniVer": "√",
@@ -673,7 +794,7 @@ declare class UniCloud {
673
794
  * "android": {
674
795
  * "osVer": "5.0",
675
796
  * "uniVer": "√",
676
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
797
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
677
798
  * },
678
799
  * "ios": {
679
800
  * "uniVer": "√",
@@ -695,7 +816,7 @@ declare class UniCloud {
695
816
  * "android": {
696
817
  * "osVer": "5.0",
697
818
  * "uniVer": "√",
698
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
819
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
699
820
  * },
700
821
  * "ios": {
701
822
  * "uniVer": "√",
@@ -717,7 +838,7 @@ declare class UniCloud {
717
838
  * "android": {
718
839
  * "osVer": "5.0",
719
840
  * "uniVer": "√",
720
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
841
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
721
842
  * },
722
843
  * "ios": {
723
844
  * "uniVer": "√",
@@ -739,7 +860,7 @@ declare class UniCloud {
739
860
  * "android": {
740
861
  * "osVer": "5.0",
741
862
  * "uniVer": "√",
742
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
863
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
743
864
  * },
744
865
  * "ios": {
745
866
  * "uniVer": "√",
@@ -761,7 +882,7 @@ declare class UniCloud {
761
882
  * "android": {
762
883
  * "osVer": "5.0",
763
884
  * "uniVer": "√",
764
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
885
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
765
886
  * },
766
887
  * "ios": {
767
888
  * "uniVer": "√",
@@ -783,7 +904,7 @@ declare class UniCloud {
783
904
  * "android": {
784
905
  * "osVer": "5.0",
785
906
  * "uniVer": "√",
786
- * "unixVer": "阿里云 3.91,腾讯云 3.91"
907
+ * "unixVer": "阿里云 3.91,腾讯云 3.91,支付宝云 3.98"
787
908
  * },
788
909
  * "ios": {
789
910
  * "uniVer": "√",
@@ -805,7 +926,7 @@ declare class UniCloud {
805
926
  * "android": {
806
927
  * "osVer": "5.0",
807
928
  * "uniVer": "√",
808
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
929
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
809
930
  * },
810
931
  * "ios": {
811
932
  * "uniVer": "√",
@@ -827,7 +948,7 @@ declare class UniCloud {
827
948
  * "android": {
828
949
  * "osVer": "5.0",
829
950
  * "uniVer": "√",
830
- * "unixVer": "阿里云 3.9,腾讯云 3.91"
951
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
831
952
  * },
832
953
  * "ios": {
833
954
  * "uniVer": "√",
@@ -841,8 +962,30 @@ declare class UniCloud {
841
962
  * }
842
963
  */
843
964
  chooseAndUploadFile(options: UniCloudChooseAndUploadFileOptions): Promise<UniCloudChooseAndUploadFileResult>;
965
+ /**
966
+ * 连接 WebSocket
967
+ * @description 连接 WebSocket
968
+ * @uniPlatform {
969
+ * "app": {
970
+ * "android": {
971
+ * "osVer": "5.0",
972
+ * "uniVer": "4.23",
973
+ * "unixVer": "4.24"
974
+ * },
975
+ * "ios": {
976
+ * "uniVer": "4.23",
977
+ * "unixVer": "4.24"
978
+ * }
979
+ * },
980
+ * "web": {
981
+ * "uniVer": "4.23",
982
+ * "unixVer": "4.24"
983
+ * }
984
+ * }
985
+ */
986
+ connectWebSocket (options: UniCloudConnectWebSocketOptions) : SocketTask;
844
987
  }
845
988
 
846
989
  declare const uniCloud: UniCloud;
847
990
 
848
- export { type UniCloudCallFunctionOptions, type UniCloudCallFunctionResult, type UniCloudChooseAndUploadFileOptions, type UniCloudChooseAndUploadFileResult, type UniCloudDBAddResult, type UniCloudDBBatchAddResult, type UniCloudDBCountResult, UniCloudDBFilter, type UniCloudDBGetResult, UniCloudDBQuery, type UniCloudDBRemoveResult, type UniCloudDBUpdateResult, UniCloudError, type UniCloudGetTempFileURLOptions, type UniCloudGetTempFileURLResult, type UniCloudGetTempFileURLResultItem, type UniCloudImportObjectErrorOptions, type UniCloudImportObjectLoadingOptions, type UniCloudImportObjectOptions, type UniCloudInitOptions, type UniCloudRefreshTokenEvent, type UniCloudResponseEvent, type UniCloudUploadFileOptions, type UniCloudUploadFileResult, type UniCloudUploadProgress, type UniCloudUserInfo, uniCloud };
991
+ export { type UniCloudCallFunctionOptions, type UniCloudCallFunctionResult, type UniCloudChooseAndUploadFileOptions, type UniCloudChooseAndUploadFileResult, type UniCloudDBAddResult, type UniCloudDBBatchAddResult, type UniCloudDBCountResult, UniCloudDBFilter, type UniCloudDBGetResult, UniCloudDBQuery, type UniCloudDBRemoveResult, type UniCloudDBUpdateResult, type UniCloudDBMultiSendResultItem, type UniCloudDBMultiSendResult, UniCloudError, type UniCloudGetTempFileURLOptions, type UniCloudGetTempFileURLResult, type UniCloudGetTempFileURLResultItem, type UniCloudImportObjectErrorOptions, type UniCloudImportObjectLoadingOptions, type UniCloudImportObjectOptions, type UniCloudInitOptions, type UniCloudRefreshTokenEvent, type UniCloudResponseEvent, type UniCloudUploadFileOptions, type UniCloudUploadFileResult, type UniCloudUploadProgress, type UniCloudUserInfo, uniCloud };
@@ -4,33 +4,30 @@
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniCheckboxGroupChangeEventDetail {
7
+ export declare class UniCheckboxGroupChangeEventDetail {
8
8
  value: string[]
9
- constructor (value: string[])
9
+ constructor(value: string[])
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniCheckboxGroupChangeEvent extends UniCustomEvent<UniCheckboxGroupChangeEventDetail> {
16
- constructor (value: string[])
15
+ export class UniCheckboxGroupChangeEvent extends UniCustomEvent<UniCheckboxGroupChangeEventDetail> {
16
+ constructor(value: string[])
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniCheckboxGroupElement extends UniElement {
23
- }
22
+ interface UniCheckboxGroupElement extends UniElement {}
24
23
 
25
24
  /**
26
25
  * @package io.dcloud.uniapp.framework
27
26
  */
28
- interface UniCheckboxElement extends UniElement {
29
- }
30
-
27
+ export interface UniCheckboxElement extends UniElement {}
31
28
 
32
- declare type CheckboxGroupChangeEvent = UniCheckboxGroupChangeEvent
33
- declare const CheckboxGroupChangeEvent: typeof UniCheckboxGroupChangeEvent
29
+ export type CheckboxGroupChangeEvent = UniCheckboxGroupChangeEvent
30
+ export const CheckboxGroupChangeEvent: typeof UniCheckboxGroupChangeEvent
34
31
 
35
- declare type CheckboxGroupChangeEventDetail = UniCheckboxGroupChangeEventDetail
36
- declare const CheckboxGroupChangeEventDetail: typeof UniCheckboxGroupChangeEventDetail
32
+ export type CheckboxGroupChangeEventDetail = UniCheckboxGroupChangeEventDetail
33
+ export const CheckboxGroupChangeEventDetail: typeof UniCheckboxGroupChangeEventDetail
@@ -1,46 +1,46 @@
1
1
  // type OnLaunchOptions = {
2
2
  // path: string
3
3
  // }
4
- type OnHide = () => void;
5
- declare function onHide(hook: OnHide, target?: ComponentInternalInstance | null): void;
6
- type OnAppLaunch = (options: OnLaunchOptions) => void;
7
- declare function onLaunch(hook: OnAppLaunch, target?: ComponentInternalInstance | null): void;
4
+ type OnHide = () => void
5
+ export function onHide(hook: OnHide, target?: ComponentInternalInstance | null): void
6
+ type OnAppLaunch = (options: OnLaunchOptions) => void
7
+ export function onLaunch(hook: OnAppLaunch, target?: ComponentInternalInstance | null): void
8
8
  // type OnShowOptions = {
9
9
  // path: string;
10
10
  // };
11
- type OnAppShow = (options: OnShowOptions) => void;
12
- declare function onAppShow(hook: OnAppShow, target?: ComponentInternalInstance | null): void;
13
- type OnAppHide = () => void;
14
- declare function onAppHide(hook: OnAppHide, target?: ComponentInternalInstance | null): void;
15
- type OnLastPageBackPress = () => void;
16
- declare function onLastPageBackPress(hook: OnLastPageBackPress, target?: ComponentInternalInstance | null): void;
17
- type OnExit = () => void;
18
- declare function onExit(hook: OnExit, target?: ComponentInternalInstance | null): void;
11
+ type OnAppShow = (options: OnShowOptions) => void
12
+ export function onAppShow(hook: OnAppShow, target?: ComponentInternalInstance | null): void
13
+ type OnAppHide = () => void
14
+ export function onAppHide(hook: OnAppHide, target?: ComponentInternalInstance | null): void
15
+ type OnLastPageBackPress = () => void
16
+ export function onLastPageBackPress(hook: OnLastPageBackPress, target?: ComponentInternalInstance | null): void
17
+ type OnExit = () => void
18
+ export function onExit(hook: OnExit, target?: ComponentInternalInstance | null): void
19
19
  // type OnLoadOptions = Map<string, string>;
20
- type OnLoad = (options: OnLoadOptions) => void;
21
- declare function onLoad(hook: OnLoad, target?: ComponentInternalInstance | null): void;
22
- type OnPageShow = () => void;
23
- declare function onPageShow(hook: OnPageShow, target?: ComponentInternalInstance | null): void;
24
- type OnPageHide = () => void;
25
- declare function onPageHide(hook: OnPageHide, target?: ComponentInternalInstance | null): void;
26
- type OnReady = () => void;
27
- declare function onReady(hook: OnReady, target?: ComponentInternalInstance | null): void;
28
- type OnUnload = () => void;
29
- declare function onUnload(hook: OnUnload, target?: ComponentInternalInstance | null): void;
30
- type OnPullDownRefresh = () => void;
31
- declare function onPullDownRefresh(hook: OnPullDownRefresh, target?: ComponentInternalInstance | null): void;
20
+ type OnLoad = (options: OnLoadOptions) => void
21
+ export function onLoad(hook: OnLoad, target?: ComponentInternalInstance | null): void
22
+ type OnPageShow = () => void
23
+ export function onPageShow(hook: OnPageShow, target?: ComponentInternalInstance | null): void
24
+ type OnPageHide = () => void
25
+ export function onPageHide(hook: OnPageHide, target?: ComponentInternalInstance | null): void
26
+ type OnReady = () => void
27
+ export function onReady(hook: OnReady, target?: ComponentInternalInstance | null): void
28
+ type OnUnload = () => void
29
+ export function onUnload(hook: OnUnload, target?: ComponentInternalInstance | null): void
30
+ type OnPullDownRefresh = () => void
31
+ export function onPullDownRefresh(hook: OnPullDownRefresh, target?: ComponentInternalInstance | null): void
32
32
  // type OnPageScrollOptions = {
33
33
  // scrollTop: number;
34
34
  // };
35
- type OnPageScroll = (options: OnPageScrollOptions) => void;
36
- declare function onPageScroll(hook: OnPageScroll, target?: ComponentInternalInstance | null): void;
37
- type OnReachBottom = () => void;
38
- declare function onReachBottom(hook: OnReachBottom, target?: ComponentInternalInstance | null): void;
35
+ type OnPageScroll = (options: OnPageScrollOptions) => void
36
+ export function onPageScroll(hook: OnPageScroll, target?: ComponentInternalInstance | null): void
37
+ type OnReachBottom = () => void
38
+ export function onReachBottom(hook: OnReachBottom, target?: ComponentInternalInstance | null): void
39
39
  // type OnBackPressOptions = {
40
40
  // from: 'backbutton' | 'navigateBack';
41
41
  // };
42
- type OnBackPress = (options: OnBackPressOptions) => boolean | null;
43
- declare function onBackPress(hook: OnBackPress, target?: ComponentInternalInstance | null): void;
42
+ type OnBackPress = (options: OnBackPressOptions) => boolean | null
43
+ export function onBackPress(hook: OnBackPress, target?: ComponentInternalInstance | null): void
44
44
  // type OnResizeSize = {
45
45
  // screenHeight: number;
46
46
  // screenWidth: number;
@@ -51,5 +51,5 @@ declare function onBackPress(hook: OnBackPress, target?: ComponentInternalInstan
51
51
  // deviceOrientation: string;
52
52
  // size: OnResizeSize;
53
53
  // };
54
- type OnResize = (options: OnResizeOptions) => void;
55
- declare function onResize(hook: OnResize, target?: ComponentInternalInstance | null): void;
54
+ type OnResize = (options: OnResizeOptions) => void
55
+ export function onResize(hook: OnResize, target?: ComponentInternalInstance | null): void
@@ -4,33 +4,30 @@
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniPickerViewChangeEventDetail {
7
+ export class UniPickerViewChangeEventDetail {
8
8
  value: number[]
9
- constructor (value: number[])
9
+ constructor(value: number[])
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniPickerViewChangeEvent extends UniCustomEvent<UniPickerViewChangeEventDetail> {
16
- constructor (value: number[])
15
+ export class UniPickerViewChangeEvent extends UniCustomEvent<UniPickerViewChangeEventDetail> {
16
+ constructor(value: number[])
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniPickerViewElement extends UniElement {
23
- }
22
+ export interface UniPickerViewElement extends UniElement {}
24
23
 
25
24
  /**
26
25
  * @package io.dcloud.uniapp.framework
27
26
  */
28
- interface UniPickerViewColumnElement extends UniElement {
29
- }
30
-
27
+ export interface UniPickerViewColumnElement extends UniElement {}
31
28
 
32
- declare type PickerViewChangeEvent = UniPickerViewChangeEvent
33
- declare const PickerViewChangeEvent: typeof UniPickerViewChangeEvent
29
+ export type PickerViewChangeEvent = UniPickerViewChangeEvent
30
+ export const PickerViewChangeEvent: typeof UniPickerViewChangeEvent
34
31
 
35
- declare type PickerViewChangeEventDetail = UniPickerViewChangeEventDetail
36
- declare const PickerViewChangeEventDetail: typeof UniPickerViewChangeEventDetail
32
+ export type PickerViewChangeEventDetail = UniPickerViewChangeEventDetail
33
+ export const PickerViewChangeEventDetail: typeof UniPickerViewChangeEventDetail
@@ -4,27 +4,25 @@
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniProgressActiveendEventDetail {
7
+ export class UniProgressActiveendEventDetail {
8
8
  curPercent: number
9
- constructor (value: number)
9
+ constructor(value: number)
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniProgressActiveendEvent extends UniCustomEvent<UniProgressActiveendEventDetail> {
16
- constructor (value: number)
15
+ export class UniProgressActiveendEvent extends UniCustomEvent<UniProgressActiveendEventDetail> {
16
+ constructor(value: number)
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniProgressElement extends UniElement {
23
- }
24
-
22
+ export interface UniProgressElement extends UniElement {}
25
23
 
26
- declare type ProgressActiveendEvent = UniProgressActiveendEvent
27
- declare const ProgressActiveendEvent: typeof UniProgressActiveendEvent
24
+ export type ProgressActiveendEvent = UniProgressActiveendEvent
25
+ export const ProgressActiveendEvent: typeof UniProgressActiveendEvent
28
26
 
29
- declare type ProgressActiveendEventDetail = UniProgressActiveendEventDetail
30
- declare const ProgressActiveendEventDetail: typeof UniProgressActiveendEventDetail
27
+ export type ProgressActiveendEventDetail = UniProgressActiveendEventDetail
28
+ export const ProgressActiveendEventDetail: typeof UniProgressActiveendEventDetail
@@ -4,33 +4,30 @@
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniRadioGroupChangeEventDetail {
7
+ export class UniRadioGroupChangeEventDetail {
8
8
  value: string
9
- constructor (value: string)
9
+ constructor(value: string)
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniRadioGroupChangeEvent extends UniCustomEvent<UniRadioGroupChangeEventDetail> {
16
- constructor (value: string)
15
+ export class UniRadioGroupChangeEvent extends UniCustomEvent<UniRadioGroupChangeEventDetail> {
16
+ constructor(value: string)
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniRadioElement extends UniElement {
23
- }
22
+ interface UniRadioElement extends UniElement {}
24
23
 
25
24
  /**
26
25
  * @package io.dcloud.uniapp.framework
27
26
  */
28
- interface UniRadioGroupElement extends UniElement {
29
- }
30
-
27
+ export interface UniRadioGroupElement extends UniElement {}
31
28
 
32
- declare type RadioGroupChangeEvent = UniRadioGroupChangeEvent
33
- declare const RadioGroupChangeEvent: typeof UniRadioGroupChangeEvent
29
+ export type RadioGroupChangeEvent = UniRadioGroupChangeEvent
30
+ export const RadioGroupChangeEvent: typeof UniRadioGroupChangeEvent
34
31
 
35
- declare type RadioGroupChangeEventDetail = UniRadioGroupChangeEventDetail
36
- declare const RadioGroupChangeEventDetail: typeof UniRadioGroupChangeEventDetail
32
+ export type RadioGroupChangeEventDetail = UniRadioGroupChangeEventDetail
33
+ export const RadioGroupChangeEventDetail: typeof UniRadioGroupChangeEventDetail
@@ -4,29 +4,28 @@
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniSliderChangeEventDetail {
7
+ export class UniSliderChangeEventDetail {
8
8
  value: number
9
- constructor (value: number)
9
+ constructor(value: number)
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniSliderChangeEvent extends UniCustomEvent<UniSliderChangeEventDetail> {
16
- constructor (value: number)
15
+ export class UniSliderChangeEvent extends UniCustomEvent<UniSliderChangeEventDetail> {
16
+ constructor(value: number)
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniSliderElement extends UniElement {
22
+ export interface UniSliderElement extends UniElement {
23
23
  get value(): number
24
24
  set value(value: number)
25
25
  }
26
26
 
27
+ export type SliderChangeEvent = UniSliderChangeEvent
28
+ export const SliderChangeEvent: typeof UniSliderChangeEvent
27
29
 
28
- declare type SliderChangeEvent = UniSliderChangeEvent
29
- declare const SliderChangeEvent: typeof UniSliderChangeEvent
30
-
31
- declare type SliderChangeEventDetail = UniSliderChangeEventDetail
32
- declare const SliderChangeEventDetail: typeof UniSliderChangeEventDetail
30
+ export type SliderChangeEventDetail = UniSliderChangeEventDetail
31
+ export const SliderChangeEventDetail: typeof UniSliderChangeEventDetail
@@ -1,30 +1,28 @@
1
- /// <reference path="../native/UniCustomEvent.d.ts" />
2
- /// <reference path="../native/UniElement.d.ts" />
1
+ import { UniCustomEvent } from "../native/UniCustomEvent"
2
+ import { UniElementImpl } from "../native/UniElement"
3
3
 
4
4
  /**
5
5
  * @package io.dcloud.uniapp.framework
6
6
  */
7
- declare class UniSwitchChangeEventDetail {
7
+ export class UniSwitchChangeEventDetail {
8
8
  value: boolean
9
- constructor (value: boolean)
9
+ constructor(value: boolean)
10
10
  }
11
11
 
12
12
  /**
13
13
  * @package io.dcloud.uniapp.framework
14
14
  */
15
- declare class UniSwitchChangeEvent extends UniCustomEvent<UniSwitchChangeEventDetail> {
16
- constructor (value: boolean)
15
+ export class UniSwitchChangeEvent extends UniCustomEvent<UniSwitchChangeEventDetail> {
16
+ constructor(value: boolean)
17
17
  }
18
18
 
19
19
  /**
20
20
  * @package io.dcloud.uniapp.framework
21
21
  */
22
- interface UniSwitchElement extends UniElement {
23
- }
24
-
22
+ interface UniSwitchElement extends UniElementImpl {}
25
23
 
26
- declare type SwitchChangeEvent = UniSwitchChangeEvent
27
- declare const SwitchChangeEvent: typeof UniSwitchChangeEvent
24
+ export type SwitchChangeEvent = UniSwitchChangeEvent
25
+ export const SwitchChangeEvent: typeof UniSwitchChangeEvent
28
26
 
29
- declare type SwitchChangeEventDetail = UniSwitchChangeEventDetail
30
- declare const SwitchChangeEventDetail: typeof UniSwitchChangeEventDetail
27
+ export type SwitchChangeEventDetail = UniSwitchChangeEventDetail
28
+ export const SwitchChangeEventDetail: typeof UniSwitchChangeEventDetail