@dcloudio/uni-app-x 0.4.5 → 0.5.0

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 (74) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +986 -0
  3. package/types/common.d.ts +7 -0
  4. package/types/index.d.ts +3 -0
  5. package/types/native/AsyncApiResult.d.ts +1 -0
  6. package/types/native/CSSStyleDeclaration.d.ts +20 -0
  7. package/types/native/CustomEvent.d.ts +1 -0
  8. package/types/native/DOMRect.d.ts +56 -0
  9. package/types/native/DrawableContext.d.ts +102 -11
  10. package/types/native/Event.d.ts +25 -10
  11. package/types/native/IApp.d.ts +1 -0
  12. package/types/native/IDocument.d.ts +1 -0
  13. package/types/native/INode.d.ts +136 -5
  14. package/types/native/IPage.d.ts +1 -0
  15. package/types/native/IPageManager.d.ts +1 -0
  16. package/types/native/ITabsNode.d.ts +1 -0
  17. package/types/native/IWebViewNode.d.ts +28 -0
  18. package/types/native/ImageErrorEvent.d.ts +13 -0
  19. package/types/native/ImageLoadEvent.d.ts +17 -0
  20. package/types/native/MouseEvent.d.ts +44 -19
  21. package/types/native/NodeData.d.ts +1 -0
  22. package/types/native/PageEvent.d.ts +1 -0
  23. package/types/native/PageScrollEvent.d.ts +3 -0
  24. package/types/native/ResizeEvent.d.ts +26 -6
  25. package/types/native/RichTextItemClickEvent.d.ts +21 -0
  26. package/types/native/ScrollEvent.d.ts +27 -9
  27. package/types/native/SourceError.d.ts +36 -0
  28. package/types/native/TabTapEvent.d.ts +10 -2
  29. package/types/native/TouchEvent.d.ts +41 -10
  30. package/types/native/UniAggregateError.d.ts +17 -0
  31. package/types/native/UniAppManager.d.ts +1 -0
  32. package/types/native/UniError.d.ts +54 -6
  33. package/types/native/WebViewErrorEvent.d.ts +13 -0
  34. package/types/native/WebViewLoadedEvent.d.ts +8 -0
  35. package/types/native/WebViewLoadingEvent.d.ts +8 -0
  36. package/types/native/WebViewMessageEvent.d.ts +13 -0
  37. package/types/native/index.d.ts +14 -2
  38. package/types/page.d.ts +1729 -0
  39. package/types/shims-vue.d.ts +12 -0
  40. package/types/uni/core/index.d.ts +1 -0
  41. package/types/uni/core/lib/performance/index.d.ts +21 -0
  42. package/types/uni/core/lib/performance/interface.d.ts +132 -0
  43. package/types/uni/core/lib/ui/create-selector-query/index.d.ts +4 -0
  44. package/types/uni/ext/index.d.ts +0 -1
  45. package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +4 -0
  46. package/types/uni/ext/lib/uni-createWebviewContext/utssdk/index.d.ts +11 -0
  47. package/types/uni/ext/lib/uni-createWebviewContext/utssdk/interface.d.ts +98 -0
  48. package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +4 -4
  49. package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +2 -4
  50. package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +8 -36
  51. package/types/uni/ext/lib/uni-getLocation-system/utssdk/index.d.ts +0 -2
  52. package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +40 -26
  53. package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +3 -10
  54. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +2 -0
  55. package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +3 -137
  56. package/types/uni/ext/lib/uni-media/utssdk/index.d.ts +0 -20
  57. package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +57 -139
  58. package/types/uni/ext/lib/uni-network/utssdk/app-ios/index.d.ts +67 -0
  59. package/types/uni/ext/lib/uni-network/utssdk/app-ios/interface.d.ts +530 -0
  60. package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +10 -4
  61. package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +37 -77
  62. package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +3 -3
  63. package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +0 -8
  64. package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +35 -112
  65. package/types/uni/ext/lib/uni-storage/utssdk/index.d.ts +0 -10
  66. package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +18 -102
  67. package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +2 -0
  68. package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +11 -18
  69. package/types/uni-cloud/index.d.ts +330 -274
  70. package/types/vue/index.d.ts +1 -1
  71. package/.env +0 -3
  72. package/types/native/UTSError.d.ts +0 -12
  73. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +0 -15
  74. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +0 -93
@@ -10,25 +10,6 @@ export type ChooseImageSuccessCallback = {
10
10
  tempFiles: any
11
11
  }
12
12
 
13
- export type ChooseImageFailCallback = {
14
- /**
15
- * 错误码
16
- */
17
- errCode: number,
18
- /**
19
- * 调用API的名称
20
- */
21
- errSubject: string,
22
- /**
23
- * 错误的详细信息
24
- */
25
- errMsg: string,
26
- /**
27
- * 错误来源
28
- */
29
- cause: any | null
30
- }
31
-
32
13
  export type ChooseImageCropOptions = {
33
14
  /**
34
15
  * 裁剪的宽度,单位为px,用于计算裁剪宽高比。
@@ -58,60 +39,40 @@ export type ChooseImageOptions = {
58
39
  /**
59
40
  * 最多可以选择的图片张数,默认9
60
41
  */
61
- count: (number) | null,
42
+ count?: (number) | null,
62
43
  /**
63
44
  * original 原图,compressed 压缩图,默认二者都有
64
45
  * @type string | string []
65
46
  */
66
- sizeType: (string[]) | null,
47
+ sizeType?: (string[]) | null,
67
48
  /**
68
49
  * album 从相册选图,camera 使用相机,默认二者都有
69
50
  */
70
- sourceType: (string[]) | null,
51
+ sourceType?: (string[]) | null,
71
52
  /**
72
53
  * 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。
73
54
  */
74
- extension: (string[]) | null,
55
+ extension?: (string[]) | null,
75
56
  /**
76
57
  * 图像裁剪参数,设置后 sizeType 失效。
77
58
  */
78
- crop: (ChooseImageCropOptions) | null,
59
+ crop?: (ChooseImageCropOptions) | null,
79
60
  /**
80
61
  * 成功则返回图片的本地文件路径列表 tempFilePaths
81
62
  */
82
- success: ((callback: ChooseImageSuccessCallback) => void) | null,
63
+ success?: ((callback: ChooseImageSuccessCallback) => void) | null,
83
64
  /**
84
65
  * 接口调用失败的回调函数
85
66
  */
86
- fail: ((callback: ChooseImageFailCallback) => void) | null,
67
+ fail?: ((callback: UniError) => void) | null,
87
68
  /**
88
69
  * 接口调用结束的回调函数(调用成功、失败都会执行)
89
70
  */
90
- complete: ((callback: any) => void) | null
71
+ complete?: ((callback: any) => void) | null
91
72
  }
92
73
 
93
74
  export type ChooseImage = (options: ChooseImageOptions) => void
94
75
 
95
-
96
- export type PreviewImageFailCallback = {
97
- /**
98
- * 错误码
99
- */
100
- errCode: number,
101
- /**
102
- * 调用API的名称
103
- */
104
- errSubject: string,
105
- /**
106
- * 错误的详细信息
107
- */
108
- errMsg: string,
109
- /**
110
- * 错误来源
111
- */
112
- cause: any | null
113
- }
114
-
115
76
  export type PreviewImageSuccessCallback = {
116
77
  errSubject: string,
117
78
  errMsg: string
@@ -154,12 +115,12 @@ export type PreviewImageOptions = {
154
115
  /**
155
116
  * 当前显示图片的链接,不填则默认为 urls 的第一张
156
117
  */
157
- count: string | null,
118
+ count?: string | null,
158
119
  /**
159
120
  * current 为当前显示图片的链接/索引值,不填或填写的值无效则为 urls 的第一张。App平台在 1.9.5至1.9.8之间,current为必填。不填会报错
160
121
  * @type string | number
161
122
  */
162
- current: any | null,
123
+ current?: any | null,
163
124
  /**
164
125
  * 需要预览的图片链接列表
165
126
  */
@@ -171,28 +132,28 @@ export type PreviewImageOptions = {
171
132
  * - none: 不显示指示器
172
133
  * @type 'default' | 'number' | 'none'
173
134
  */
174
- indicator: string | null,
135
+ indicator?: string | null,
175
136
  /**
176
137
  * 是否可循环预览
177
138
  * @type boolean
178
139
  */
179
- loop: boolean | null,
140
+ loop?: boolean | null,
180
141
  /**
181
142
  * 长按图片显示操作菜单,如不填默认为保存相册,1.9.5 起支持。
182
143
  */
183
- longPressActions: LongPressActionsOptions | null,
144
+ longPressActions?: LongPressActionsOptions | null,
184
145
  /**
185
146
  * 接口调用成功的回调函数
186
147
  */
187
- success: ((result: PreviewImageSuccessCallback) => void) | null,
148
+ success?: ((result: PreviewImageSuccessCallback) => void) | null,
188
149
  /**
189
150
  * 接口调用失败的回调函数
190
151
  */
191
- fail: ((result: PreviewImageFailCallback) => void) | null,
152
+ fail?: ((result: UniError) => void) | null,
192
153
  /**
193
154
  * 接口调用结束的回调函数(调用成功、失败都会执行)
194
155
  */
195
- complete: ((result: any) => void) | null
156
+ complete?: ((result: any) => void) | null
196
157
  };
197
158
 
198
159
  export type PreviewImage = (options: PreviewImageOptions) => void;
@@ -205,37 +166,19 @@ export type ClosePreviewImageSuccessCallback = {
205
166
  errMsg: string
206
167
  };
207
168
 
208
- export type ClosePreviewImageFailCallback = {
209
- /**
210
- * 错误码
211
- */
212
- errCode: number,
213
- /**
214
- * 调用API的名称
215
- */
216
- errSubject: string,
217
- /**
218
- * 错误的详细信息
219
- */
220
- errMsg: string,
221
- /**
222
- * 错误来源
223
- */
224
- cause: any | null
225
- };
226
169
  export type ClosePreviewImageOptions = {
227
170
  /**
228
171
  * 接口调用成功的回调函数
229
172
  */
230
- success: ((result: ClosePreviewImageSuccessCallback) => void) | null,
173
+ success?: ((result: ClosePreviewImageSuccessCallback) => void) | null,
231
174
  /**
232
175
  * 接口调用失败的回调函数
233
176
  */
234
- fail: ((result: ClosePreviewImageFailCallback) => void) | null,
177
+ fail?: ((result: UniError) => void) | null,
235
178
  /**
236
179
  * 接口调用结束的回调函数(调用成功、失败都会执行)
237
180
  */
238
- complete: ((result: any) => void) | null
181
+ complete?: ((result: any) => void) | null
239
182
  };
240
183
 
241
184
  export type GetImageInfo = (options: GetImageInfoOptions) => void;
@@ -261,24 +204,7 @@ export type GetImageInfoSuccessCallback = {
261
204
  */
262
205
  type: string | null
263
206
  };
264
- export type GetImageInfoFailCallback = {
265
- /**
266
- * 错误码
267
- */
268
- errCode: number,
269
- /**
270
- * 调用API的名称
271
- */
272
- errSubject: string,
273
- /**
274
- * 错误的详细信息
275
- */
276
- errMsg: string,
277
- /**
278
- * 错误来源
279
- */
280
- cause: any | null
281
- }
207
+
282
208
  export type GetImageInfoOptions = {
283
209
  /**
284
210
  * 图片的路径,可以是相对路径,临时文件路径,存储文件路径,网络图片路径
@@ -287,15 +213,15 @@ export type GetImageInfoOptions = {
287
213
  /**
288
214
  * 接口调用成功的回调函数
289
215
  */
290
- success: ((result: GetImageInfoSuccessCallback) => void) | null,
216
+ success?: ((result: GetImageInfoSuccessCallback) => void) | null,
291
217
  /**
292
218
  * 接口调用失败的回调函数
293
219
  */
294
- fail: ((result: GetImageInfoFailCallback) => void) | null,
220
+ fail?: ((result: UniError) => void) | null,
295
221
  /**
296
222
  * 接口调用结束的回调函数(调用成功、失败都会执行)
297
223
  */
298
- complete: ((result: any) => void) | null
224
+ complete?: ((result: any) => void) | null
299
225
  };
300
226
 
301
227
  export type SaveImageToPhotosAlbum = (options: SaveImageToPhotosAlbumOptions) => void;
@@ -307,7 +233,6 @@ export type SaveImageToPhotosAlbumSuccessCallback = {
307
233
  path: string
308
234
  };
309
235
 
310
- export type SaveImageToPhotosAlbumFailCallback = GetImageInfoFailCallback
311
236
  export type SaveImageToPhotosAlbumOptions = {
312
237
  /**
313
238
  * 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
@@ -316,15 +241,15 @@ export type SaveImageToPhotosAlbumOptions = {
316
241
  /**
317
242
  * 接口调用成功的回调函数
318
243
  */
319
- success: ((result: SaveImageToPhotosAlbumSuccessCallback) => void) | null,
244
+ success?: ((result: SaveImageToPhotosAlbumSuccessCallback) => void) | null,
320
245
  /**
321
246
  * 接口调用失败的回调函数
322
247
  */
323
- fail: ((result: SaveImageToPhotosAlbumFailCallback) => void) | null,
248
+ fail?: ((result: UniError) => void) | null,
324
249
  /**
325
250
  * 接口调用结束的回调函数(调用成功、失败都会执行)
326
251
  */
327
- complete: ((result: any) => void) | null
252
+ complete?: ((result: any) => void) | null
328
253
  };
329
254
  export type CompressImage = (options: CompressImageOptions) => void;
330
255
  export type CompressImageSuccessCallback = {
@@ -333,7 +258,6 @@ export type CompressImageSuccessCallback = {
333
258
  */
334
259
  tempFilePath: string
335
260
  };
336
- export type CompressImageFailCallback = GetImageInfoFailCallback;
337
261
  export type CompressImageOptions = {
338
262
  /**
339
263
  * 图片路径,图片的路径,可以是相对路径、临时文件路径、存储文件路径
@@ -342,39 +266,39 @@ export type CompressImageOptions = {
342
266
  /**
343
267
  * 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)
344
268
  */
345
- quality: number | null,
269
+ quality?: number | null,
346
270
  /**
347
271
  * 旋转度数,范围0~360
348
272
  */
349
- rotate: number | null,
273
+ rotate?: number | null,
350
274
  /**
351
275
  * 缩放图片的宽度
352
276
  */
353
- width: string | null,
277
+ width?: string | null,
354
278
  /**
355
279
  * 缩放图片的高度
356
280
  */
357
- height: string | null,
281
+ height?: string | null,
358
282
  /**
359
283
  * 压缩后图片的高度,单位为px,若不填写则默认以compressedWidth为准等比缩放
360
284
  */
361
- compressedHeight: number | null,
285
+ compressedHeight?: number | null,
362
286
  /**
363
287
  * 压缩后图片的宽度,单位为px,若不填写则默认以compressedHeight为准等比缩放。
364
288
  */
365
- compressedWidth: number | null,
289
+ compressedWidth?: number | null,
366
290
  /**
367
291
  * 接口调用成功的回调函数
368
292
  */
369
- success: ((result: CompressImageSuccessCallback) => void) | null,
293
+ success?: ((result: CompressImageSuccessCallback) => void) | null,
370
294
  /**
371
295
  * 接口调用失败的回调函数
372
296
  */
373
- fail: ((result: CompressImageFailCallback) => void) | null,
297
+ fail?: ((result: UniError) => void) | null,
374
298
  /**
375
299
  * 接口调用结束的回调函数(调用成功、失败都会执行)
376
300
  */
377
- complete: ((result: any) => void) | null
301
+ complete?: ((result: any) => void) | null
378
302
  };
379
303
 
380
304
  export type ChooseVideoSuccessCallback = {
@@ -407,44 +331,44 @@ export type ChooseVideoSuccessCallback = {
407
331
  */
408
332
  name: string | null
409
333
  };
410
- export type ChooseVideoFailCallback = ChooseImageFailCallback;
334
+
411
335
  export type ChooseVideoOptions = {
412
336
  /**
413
337
  * album 从相册选视频,camera 使用相机拍摄,默认为:['album', 'camera']
414
338
  */
415
- sourceType: (string[]) | null,
339
+ sourceType?: (string[]) | null,
416
340
  /**
417
341
  * 是否压缩所选的视频源文件,默认值为true,需要压缩
418
342
  * @type boolean
419
343
  */
420
- compressed: boolean | null,
344
+ compressed?: boolean | null,
421
345
  /**
422
346
  * 拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
423
347
  */
424
- maxDuration: number | null,
348
+ maxDuration?: number | null,
425
349
  /**
426
350
  * 摄像切换
427
351
  * - front: 前置摄像头
428
352
  * - back: 后置摄像头
429
353
  * @type 'front' | 'back'
430
354
  */
431
- camera: string | null,
355
+ camera?: string | null,
432
356
  /**
433
357
  * 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。
434
358
  */
435
- extension: (string[]) | null,
359
+ extension?: (string[]) | null,
436
360
  /**
437
361
  * 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
438
362
  */
439
- success: ((result: ChooseVideoSuccessCallback) => void) | null,
363
+ success?: ((result: ChooseVideoSuccessCallback) => void) | null,
440
364
  /**
441
365
  * 接口调用失败的回调函数
442
366
  */
443
- fail: ((result: ChooseVideoFailCallback) => void) | null,
367
+ fail?: ((result: UniError) => void) | null,
444
368
  /**
445
369
  * 接口调用结束的回调函数(调用成功、失败都会执行)
446
370
  */
447
- complete: ((result: any) => void) | null
371
+ complete?: ((result: any) => void) | null
448
372
  };
449
373
 
450
374
  export type ChooseVideo = (options: ChooseVideoOptions) => void;
@@ -484,8 +408,6 @@ export type GetVideoInfoSuccessCallback = {
484
408
  bitrate: number | null
485
409
  };
486
410
 
487
- export type GetVideoInfoFailCallback = ChooseImageFailCallback;
488
-
489
411
  export type GetVideoInfoOptions = {
490
412
  /**
491
413
  * 视频文件路径,可以是临时文件路径也可以是永久文件路径
@@ -494,23 +416,21 @@ export type GetVideoInfoOptions = {
494
416
  /**
495
417
  * 接口调用成功的回调函数
496
418
  */
497
- success: ((result: GetVideoInfoSuccessCallback) => void) | null,
419
+ success?: ((result: GetVideoInfoSuccessCallback) => void) | null,
498
420
  /**
499
421
  * 接口调用失败的回调函数
500
422
  */
501
- fail: ((result: GetVideoInfoFailCallback) => void) | null,
423
+ fail?: ((result: UniError) => void) | null,
502
424
  /**
503
425
  * 接口调用结束的回调函数(调用成功、失败都会执行)
504
426
  */
505
- complete: ((result: any) => void) | null
427
+ complete?: ((result: any) => void) | null
506
428
  };
507
429
 
508
430
  export type GetVideoInfo = (options: GetVideoInfoOptions) => void;
509
431
 
510
432
  export type SaveVideoToPhotosAlbumSuccessCallback = {};
511
433
 
512
- export type SaveVideoToPhotosAlbumFailCallback = ChooseImageFailCallback;
513
-
514
434
  export type SaveVideoToPhotosAlbumOptions = {
515
435
  /**
516
436
  * 视频文件路径,可以是临时文件路径也可以是永久文件路径
@@ -519,15 +439,15 @@ export type SaveVideoToPhotosAlbumOptions = {
519
439
  /**
520
440
  * 接口调用成功的回调函数
521
441
  */
522
- success: ((result: SaveVideoToPhotosAlbumSuccessCallback) => void) | null,
442
+ success?: ((result: SaveVideoToPhotosAlbumSuccessCallback) => void) | null,
523
443
  /**
524
444
  * 接口调用失败的回调函数
525
445
  */
526
- fail: ((result: SaveVideoToPhotosAlbumFailCallback) => void) | null,
446
+ fail?: ((result: UniError) => void) | null,
527
447
  /**
528
448
  * 接口调用结束的回调函数(调用成功、失败都会执行)
529
449
  */
530
- complete: ((result: any) => void) | null
450
+ complete?: ((result: any) => void) | null
531
451
  };
532
452
 
533
453
  export type SaveVideoToPhotosAlbum = (options: SaveVideoToPhotosAlbumOptions) => void;
@@ -543,8 +463,6 @@ export type CompressVideoSuccessCallback = {
543
463
  size: number
544
464
  };
545
465
 
546
- export type CompressVideoFailCallback = ChooseImageFailCallback;
547
-
548
466
  export type CompressVideoOptions = {
549
467
  /**
550
468
  * 视频文件路径,可以是临时文件路径也可以是永久文件路径
@@ -557,31 +475,31 @@ export type CompressVideoOptions = {
557
475
  * - high: 高
558
476
  * @type 'low' | 'medium' | 'high'
559
477
  */
560
- quality: string | null,
478
+ quality?: string | null,
561
479
  /**
562
480
  * 码率,单位 kbps
563
481
  */
564
- bitrate: number | null,
482
+ bitrate?: number | null,
565
483
  /**
566
484
  * 帧率
567
485
  */
568
- fps: number | null,
486
+ fps?: number | null,
569
487
  /**
570
488
  * 相对于原视频的分辨率比例,取值范围(0, 1]
571
489
  */
572
- resolution: number | null,
490
+ resolution?: number | null,
573
491
  /**
574
492
  * 接口调用成功的回调函数
575
493
  */
576
- success: ((result: CompressVideoSuccessCallback) => void) | null,
494
+ success?: ((result: CompressVideoSuccessCallback) => void) | null,
577
495
  /**
578
496
  * 接口调用失败的回调函数
579
497
  */
580
- fail: ((result: CompressVideoFailCallback) => void) | null,
498
+ fail?: ((result: UniError) => void) | null,
581
499
  /**
582
500
  * 接口调用结束的回调函数(调用成功、失败都会执行)
583
501
  */
584
- complete: ((result: any) => void) | null
502
+ complete?: ((result: any) => void) | null
585
503
  };
586
504
 
587
505
  export type CompressVideo = (options: CompressVideoOptions) => void;
@@ -0,0 +1,67 @@
1
+ import {
2
+ Request as RequestOrigin,
3
+ RequestOptions as RequestOptionsOrigin,
4
+ RequestSuccess as RequestSuccessOrigin,
5
+ RequestFail as RequestFailOrigin,
6
+ RequestSuccessCallback as RequestSuccessCallbackOrigin,
7
+ RequestFailCallback as RequestFailCallbackOrigin,
8
+ RequestCompleteCallback as RequestCompleteCallbackOrigin,
9
+ RequestTask as RequestTaskOrigin,
10
+ UploadFile as UploadFileOrigin,
11
+ UploadFileOptionFiles as UploadFileOptionFilesOrigin,
12
+ UploadFileSuccess as UploadFileSuccessOrigin,
13
+ UploadFileSuccessCallback as UploadFileSuccessCallbackOrigin,
14
+ UploadFileFail as UploadFileFailOrigin,
15
+ UploadFileFailCallback as UploadFileFailCallbackOrigin,
16
+ UploadFileCompleteCallback as UploadFileCompleteCallbackOrigin,
17
+ UploadFileOptions as UploadFileOptionsOrigin,
18
+ OnProgressUpdateResult as OnProgressUpdateResultOrigin,
19
+ UploadFileProgressUpdateCallback as UploadFileProgressUpdateCallbackOrigin,
20
+ UploadTask as UploadTaskOrigin,
21
+ DownloadFile as DownloadFileOrigin,
22
+ DownloadFileSuccess as DownloadFileSuccessOrigin,
23
+ DownloadFileSuccessCallback as DownloadFileSuccessCallbackOrigin,
24
+ DownloadFileFail as DownloadFileFailOrigin,
25
+ DownloadFileFailCallback as DownloadFileFailCallbackOrigin,
26
+ DownloadFileComplete as DownloadFileCompleteOrigin,
27
+ DownloadFileCompleteCallback as DownloadFileCompleteCallbackOrigin,
28
+ DownloadFileOptions as DownloadFileOptionsOrigin,
29
+ OnProgressDownloadResult as OnProgressDownloadResultOrigin,
30
+ DownloadFileProgressUpdateCallback as DownloadFileProgressUpdateCallbackOrigin,
31
+ DownloadTask as DownloadTaskOrigin,
32
+ Uni as UniOrigin
33
+ } from './interface'
34
+
35
+ declare global {
36
+ type Request = RequestOrigin
37
+ type RequestOptions = RequestOptionsOrigin
38
+ type RequestSuccess = RequestSuccessOrigin
39
+ type RequestFail = RequestFailOrigin
40
+ type RequestSuccessCallback = RequestSuccessCallbackOrigin
41
+ type RequestFailCallback = RequestFailCallbackOrigin
42
+ type RequestCompleteCallback = RequestCompleteCallbackOrigin
43
+ type RequestTask = RequestTaskOrigin
44
+ type UploadFile = UploadFileOrigin
45
+ type UploadFileOptionFiles = UploadFileOptionFilesOrigin
46
+ type UploadFileSuccess = UploadFileSuccessOrigin
47
+ type UploadFileSuccessCallback = UploadFileSuccessCallbackOrigin
48
+ type UploadFileFail = UploadFileFailOrigin
49
+ type UploadFileFailCallback = UploadFileFailCallbackOrigin
50
+ type UploadFileCompleteCallback = UploadFileCompleteCallbackOrigin
51
+ type UploadFileOptions = UploadFileOptionsOrigin
52
+ type OnProgressUpdateResult = OnProgressUpdateResultOrigin
53
+ type UploadFileProgressUpdateCallback = UploadFileProgressUpdateCallbackOrigin
54
+ type UploadTask = UploadTaskOrigin
55
+ type DownloadFile = DownloadFileOrigin
56
+ type DownloadFileSuccess = DownloadFileSuccessOrigin
57
+ type DownloadFileSuccessCallback = DownloadFileSuccessCallbackOrigin
58
+ type DownloadFileFail = DownloadFileFailOrigin
59
+ type DownloadFileFailCallback = DownloadFileFailCallbackOrigin
60
+ type DownloadFileComplete = DownloadFileCompleteOrigin
61
+ type DownloadFileCompleteCallback = DownloadFileCompleteCallbackOrigin
62
+ type DownloadFileOptions = DownloadFileOptionsOrigin
63
+ type OnProgressDownloadResult = OnProgressDownloadResultOrigin
64
+ type DownloadFileProgressUpdateCallback = DownloadFileProgressUpdateCallbackOrigin
65
+ type DownloadTask = DownloadTaskOrigin
66
+ interface Uni extends UniOrigin { }
67
+ }