@dcloudio/uni-app-x 0.7.45 → 0.7.46

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 (37) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +9 -9
  3. package/types/native/CanvasRenderingContext2D.d.ts +64 -1
  4. package/types/native/IUniNativeViewElement.d.ts +2 -0
  5. package/types/native/UniAnimation.d.ts +9 -4
  6. package/types/native/global.d.ts +2 -0
  7. package/types/native/index.d.ts +1 -0
  8. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
  9. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
  11. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
  12. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  13. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  15. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
  16. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +1 -1
  17. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +1 -1
  18. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  19. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
  20. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  22. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
  23. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
  25. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
  26. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
  27. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +98 -412
  28. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  30. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +249 -335
  32. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
  35. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
  36. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  37. package/types/uni/uts-plugin-extend/README.md +0 -3
@@ -5,72 +5,73 @@ export interface Uni {
5
5
  * @tutorial https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
6
6
  * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/background-audio-manager.html
7
7
  * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "√",
12
- * "unixVer": "4.41"
13
- * },
14
- * "ios": {
15
- * "osVer": "12.0",
16
- * "uniVer": "√",
17
- * "unixVer": "4.41"
18
- * },
19
- * "harmony": {
20
- * "osVer": "3.0",
21
- * "uniVer": "4.31",
22
- * "unixVer": "x"
23
- * }
24
- * },
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "5.0",
11
+ * "uniVer": "√",
12
+ * "unixVer": "4.41"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "12.0",
16
+ * "uniVer": "√",
17
+ * "unixVer": "4.41"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "3.0",
21
+ * "uniVer": "4.31",
22
+ * "unixVer": "x"
23
+ * }
24
+ * },
25
25
  * "web": {
26
26
  * "uniVer": "√",
27
27
  * "unixVer": "x"
28
+ * },
29
+ * "mp": {
30
+ * "weixin": {
31
+ * "hostVer": "1.2.0",
32
+ * "uniVer": "√",
33
+ * "unixVer": "4.41"
34
+ * },
35
+ * "alipay": {
36
+ * "hostVer": "1.11.0",
37
+ * "uniVer": "√",
38
+ * "unixVer": "x"
39
+ * },
40
+ * "baidu": {
41
+ * "hostVer": "√",
42
+ * "uniVer": "√",
43
+ * "unixVer": "x"
44
+ * },
45
+ * "toutiao": {
46
+ * "hostVer": "√",
47
+ * "uniVer": "√",
48
+ * "unixVer": "x"
49
+ * },
50
+ * "lark": {
51
+ * "hostVer": "5.20.0",
52
+ * "uniVer": "√",
53
+ * "unixVer": "x"
54
+ * },
55
+ * "qq": {
56
+ * "hostVer": "√",
57
+ * "uniVer": "√",
58
+ * "unixVer": "x"
59
+ * },
60
+ * "kuaishou": {
61
+ * "hostVer": "√",
62
+ * "uniVer": "√",
63
+ * "unixVer": "x"
64
+ * },
65
+ * "jd": {
66
+ * "hostVer": "√",
67
+ * "uniVer": "√",
68
+ * "unixVer": "x"
69
+ * }
28
70
  * }
29
- * "mp":{
30
- * "weixin": {
31
- * "hostVer": "√",
32
- * "uniVer": "√",
33
- * "unixVer": "4.41"
34
- * },
35
- * "alipay": {
36
- * "hostVer": "1.11.0",
37
- * "uniVer": "√",
38
- * "unixVer": "x"
39
- * },
40
- * "baidu": {
41
- * "hostVer": "√",
42
- * "uniVer": "√",
43
- * "unixVer": "x"
44
- * },
45
- * "toutiao": {
46
- * "hostVer": "√",
47
- * "uniVer": "√",
48
- * "unixVer": "x"
49
- * },
50
- * "lark": {
51
- * "hostVer": "5.20.0",
52
- * "uniVer": "√",
53
- * "unixVer": "x"
54
- * },
55
- * "qq": {
56
- * "hostVer": "√",
57
- * "uniVer": "√",
58
- * "unixVer": "x"
59
- * },
60
- * "kuaishou": {
61
- * "hostVer": "√",
62
- * "uniVer": "√",
63
- * "unixVer": "x"
64
- * },
65
- * "jd": {
66
- * "hostVer": "√",
67
- * "uniVer": "√",
68
- * "unixVer": "x"
69
- * }
70
- * }
71
71
  * }
72
- */
73
- getBackgroundAudioManager: GetBackgroundAudioManager;
72
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/BackgroundAudioManager.html
73
+ */
74
+ getBackgroundAudioManager(): BackgroundAudioManager;
74
75
  }
75
76
 
76
77
  export type GetBackgroundAudioManager = () => BackgroundAudioManager;
@@ -78,7 +79,7 @@ export type GetBackgroundAudioManager = () => BackgroundAudioManager;
78
79
  export interface BackgroundAudioManager {
79
80
  /**
80
81
  * 当前音频的长度(单位:s),只有在当前有合法的 src 时返回
81
- * @uniPlatform
82
+ * @uniPlatform
82
83
  {
83
84
  "app": {
84
85
  "android": {
@@ -101,7 +102,7 @@ export interface BackgroundAudioManager {
101
102
  duration: number;
102
103
  /**
103
104
  * 当前音频的播放位置(单位:s),只有在当前有合法的 src 时返回
104
- * @uniPlatform
105
+ * @uniPlatform
105
106
  {
106
107
  "app": {
107
108
  "android": {
@@ -124,7 +125,7 @@ export interface BackgroundAudioManager {
124
125
  currentTime: number;
125
126
  /**
126
127
  * 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
127
- * @uniPlatform
128
+ * @uniPlatform
128
129
  {
129
130
  "app": {
130
131
  "android": {
@@ -148,7 +149,7 @@ export interface BackgroundAudioManager {
148
149
  paused: boolean;
149
150
  /**
150
151
  * 音频的数据源,默认为空字符串,当设置了新的 src 时,会自动开始播放 ,目前支持的格式有 m4a, aac, mp3, wav
151
- * @uniPlatform
152
+ * @uniPlatform
152
153
  {
153
154
  "app": {
154
155
  "android": {
@@ -166,12 +167,12 @@ export interface BackgroundAudioManager {
166
167
  "unixUtsPlugin": "4.41"
167
168
  }
168
169
  }
169
- }
170
+ }
170
171
  */
171
172
  src: string;
172
173
  /**
173
174
  * 音频开始播放的位置(单位:s)
174
- * @uniPlatform
175
+ * @uniPlatform
175
176
  {
176
177
  "app": {
177
178
  "android": {
@@ -194,7 +195,7 @@ export interface BackgroundAudioManager {
194
195
  startTime: number;
195
196
  /**
196
197
  * 音频缓冲的时间点,仅保证当前播放时间点到此时间点内容已缓冲
197
- * @uniPlatform
198
+ * @uniPlatform
198
199
  {
199
200
  "app": {
200
201
  "android": {
@@ -217,7 +218,7 @@ export interface BackgroundAudioManager {
217
218
  buffered: number;
218
219
  /**
219
220
  * 音频标题,用于做原生音频播放器音频标题。原生音频播放器中的分享功能,分享出去的卡片标题,也将使用该值。
220
- * @uniPlatform
221
+ * @uniPlatform
221
222
  {
222
223
  "app": {
223
224
  "android": {
@@ -240,7 +241,7 @@ export interface BackgroundAudioManager {
240
241
  title: string;
241
242
  /**
242
243
  * 专辑名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
243
- * @uniPlatform
244
+ * @uniPlatform
244
245
  {
245
246
  "app": {
246
247
  "android": {
@@ -263,7 +264,7 @@ export interface BackgroundAudioManager {
263
264
  epname: string;
264
265
  /**
265
266
  * 歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
266
- * @uniPlatform
267
+ * @uniPlatform
267
268
  {
268
269
  "app": {
269
270
  "android": {
@@ -286,7 +287,7 @@ export interface BackgroundAudioManager {
286
287
  singer: string;
287
288
  /**
288
289
  * 封面图url,用于做原生音频播放器背景图。原生音频播放器中的分享功能,分享出去的卡片配图及背景也将使用该图。
289
- * @uniPlatform
290
+ * @uniPlatform
290
291
  {
291
292
  "app": {
292
293
  "android": {
@@ -309,7 +310,7 @@ export interface BackgroundAudioManager {
309
310
  coverImgUrl: string;
310
311
  /**
311
312
  * 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值
312
- * @uniPlatform
313
+ * @uniPlatform
313
314
  {
314
315
  "app": {
315
316
  "android": {
@@ -332,7 +333,7 @@ export interface BackgroundAudioManager {
332
333
  webUrl: string;
333
334
  /**
334
335
  * 音频协议。默认值为 'http',设置 'hls' 可以支持播放 HLS 协议的直播音频
335
- * @uniPlatform
336
+ * @uniPlatform
336
337
  {
337
338
  "app": {
338
339
  "android": {
@@ -355,7 +356,7 @@ export interface BackgroundAudioManager {
355
356
  protocol: string;
356
357
  /**
357
358
  * 播放的倍率。可取值: 0.5/0.8/1.0/1.25/1.5/2.0,默认值为1.0。(仅 App 支持)
358
- * @uniPlatform
359
+ * @uniPlatform
359
360
  {
360
361
  "app": {
361
362
  "android": {
@@ -378,7 +379,7 @@ export interface BackgroundAudioManager {
378
379
  playbackRate?: number;
379
380
  /**
380
381
  * 播放
381
- * @uniPlatform
382
+ * @uniPlatform
382
383
  {
383
384
  "app": {
384
385
  "android": {
@@ -401,7 +402,7 @@ export interface BackgroundAudioManager {
401
402
  play(): void;
402
403
  /**
403
404
  * 暂停
404
- * @uniPlatform
405
+ * @uniPlatform
405
406
  {
406
407
  "app": {
407
408
  "android": {
@@ -424,7 +425,7 @@ export interface BackgroundAudioManager {
424
425
  pause(): void;
425
426
  /**
426
427
  * 跳转到指定位置,单位 s
427
- * @uniPlatform
428
+ * @uniPlatform
428
429
  {
429
430
  "app": {
430
431
  "android": {
@@ -447,7 +448,7 @@ export interface BackgroundAudioManager {
447
448
  seek(position: number): void;
448
449
  /**
449
450
  * 停止
450
- * @uniPlatform
451
+ * @uniPlatform
451
452
  {
452
453
  "app": {
453
454
  "android": {
@@ -470,7 +471,7 @@ export interface BackgroundAudioManager {
470
471
  stop(): void;
471
472
  /**
472
473
  * 背景音频进入可以播放状态,但不保证后面可以流畅播放
473
- * @uniPlatform
474
+ * @uniPlatform
474
475
  {
475
476
  "app": {
476
477
  "android": {
@@ -493,7 +494,7 @@ export interface BackgroundAudioManager {
493
494
  onCanplay(callback: (result: any) => void): void;
494
495
  /**
495
496
  * 背景音频播放事件
496
- * @uniPlatform
497
+ * @uniPlatform
497
498
  {
498
499
  "app": {
499
500
  "android": {
@@ -516,7 +517,7 @@ export interface BackgroundAudioManager {
516
517
  onPlay(callback: (result: any) => void): void;
517
518
  /**
518
519
  * 背景音频暂停事件
519
- * @uniPlatform
520
+ * @uniPlatform
520
521
  {
521
522
  "app": {
522
523
  "android": {
@@ -539,7 +540,7 @@ export interface BackgroundAudioManager {
539
540
  onPause(callback: (result: any) => void): void;
540
541
  /**
541
542
  * 背景音频停止事件
542
- * @uniPlatform
543
+ * @uniPlatform
543
544
  {
544
545
  "app": {
545
546
  "android": {
@@ -562,7 +563,7 @@ export interface BackgroundAudioManager {
562
563
  onStop(callback: (result: any) => void): void;
563
564
  /**
564
565
  * 背景音频自然播放结束事件
565
- * @uniPlatform
566
+ * @uniPlatform
566
567
  {
567
568
  "app": {
568
569
  "android": {
@@ -585,7 +586,7 @@ export interface BackgroundAudioManager {
585
586
  onEnded(callback: (result: any) => void): void;
586
587
  /**
587
588
  * 音频进行 seek 操作事件
588
- * @uniPlatform
589
+ * @uniPlatform
589
590
  {
590
591
  "app": {
591
592
  "android": {
@@ -612,7 +613,7 @@ export interface BackgroundAudioManager {
612
613
  onSeeking(callback : (result : any) => void) : void;
613
614
  /**
614
615
  * 音频完成 seek 操作事件
615
- * @uniPlatform
616
+ * @uniPlatform
616
617
  {
617
618
  "app": {
618
619
  "android": {
@@ -639,7 +640,7 @@ export interface BackgroundAudioManager {
639
640
  onSeeked(callback : (result : any) => void) : void;
640
641
  /**
641
642
  * 背景音频播放进度更新事件
642
- * @uniPlatform
643
+ * @uniPlatform
643
644
  {
644
645
  "app": {
645
646
  "android": {
@@ -662,7 +663,7 @@ export interface BackgroundAudioManager {
662
663
  onTimeUpdate(callback: (result: any) => void): void;
663
664
  /**
664
665
  * 用户在系统音乐播放面板点击上一曲事件
665
- * @uniPlatform
666
+ * @uniPlatform
666
667
  {
667
668
  "app": {
668
669
  "android": {
@@ -685,7 +686,7 @@ export interface BackgroundAudioManager {
685
686
  onPrev(callback: (result: any) => void): void;
686
687
  /**
687
688
  * 用户在系统音乐播放面板点击下一曲事件
688
- * @uniPlatform
689
+ * @uniPlatform
689
690
  {
690
691
  "app": {
691
692
  "android": {
@@ -708,7 +709,7 @@ export interface BackgroundAudioManager {
708
709
  onNext(callback: (result: any) => void): void;
709
710
  /**
710
711
  * 背景音频播放错误事件
711
- * @uniPlatform
712
+ * @uniPlatform
712
713
  {
713
714
  "app": {
714
715
  "android": {
@@ -731,7 +732,7 @@ export interface BackgroundAudioManager {
731
732
  onError(callback : (result : ICreateBackgroundAudioFail) => void) : void;
732
733
  /**
733
734
  * 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发
734
- * @uniPlatform
735
+ * @uniPlatform
735
736
  {
736
737
  "app": {
737
738
  "android": {
@@ -752,6 +753,159 @@ export interface BackgroundAudioManager {
752
753
  }
753
754
  */
754
755
  onWaiting(callback: (result: any) => void): void;
756
+ /**
757
+ * 需要基础库: `3.4.8`
758
+ *
759
+ * 音频类型。可设置 "audio" 和 "music" 两种值,默认为 "audio"。不同音频类型对应的播放器样式不一样(实验特性,目前仅iOS和Android端支持)
760
+ *
761
+ * @uniPlatform {
762
+ * "mp": {
763
+ * "weixin": {
764
+ * "hostVer": "3.4.8",
765
+ * "uniVer": "√",
766
+ * "unixVer": "4.41"
767
+ * },
768
+ * "alipay": {
769
+ * "hostVer": "-",
770
+ * "uniVer": "-",
771
+ * "unixVer": "-"
772
+ * },
773
+ * "baidu": {
774
+ * "hostVer": "-",
775
+ * "uniVer": "-",
776
+ * "unixVer": "-"
777
+ * },
778
+ * "toutiao": {
779
+ * "hostVer": "-",
780
+ * "uniVer": "-",
781
+ * "unixVer": "-"
782
+ * },
783
+ * "lark": {
784
+ * "hostVer": "-",
785
+ * "uniVer": "-",
786
+ * "unixVer": "-"
787
+ * },
788
+ * "qq": {
789
+ * "hostVer": "-",
790
+ * "uniVer": "-",
791
+ * "unixVer": "-"
792
+ * },
793
+ * "kuaishou": {
794
+ * "hostVer": "-",
795
+ * "uniVer": "-",
796
+ * "unixVer": "-"
797
+ * },
798
+ * "jd": {
799
+ * "hostVer": "-",
800
+ * "uniVer": "-",
801
+ * "unixVer": "-"
802
+ * }
803
+ * }
804
+ * }
805
+ */
806
+ audioType?: string | null;
807
+ /**
808
+ * 需要基础库: `3.4.8`
809
+ *
810
+ * 关联页面路径。设置后,当点击播放器上的小程序跳转链接时,将跳转到这个关联页面路径(实验特性,目前仅Android端支持)
811
+ *
812
+ * @uniPlatform {
813
+ * "mp": {
814
+ * "weixin": {
815
+ * "hostVer": "3.4.8",
816
+ * "uniVer": "√",
817
+ * "unixVer": "4.41"
818
+ * },
819
+ * "alipay": {
820
+ * "hostVer": "-",
821
+ * "uniVer": "-",
822
+ * "unixVer": "-"
823
+ * },
824
+ * "baidu": {
825
+ * "hostVer": "-",
826
+ * "uniVer": "-",
827
+ * "unixVer": "-"
828
+ * },
829
+ * "toutiao": {
830
+ * "hostVer": "-",
831
+ * "uniVer": "-",
832
+ * "unixVer": "-"
833
+ * },
834
+ * "lark": {
835
+ * "hostVer": "-",
836
+ * "uniVer": "-",
837
+ * "unixVer": "-"
838
+ * },
839
+ * "qq": {
840
+ * "hostVer": "-",
841
+ * "uniVer": "-",
842
+ * "unixVer": "-"
843
+ * },
844
+ * "kuaishou": {
845
+ * "hostVer": "-",
846
+ * "uniVer": "-",
847
+ * "unixVer": "-"
848
+ * },
849
+ * "jd": {
850
+ * "hostVer": "-",
851
+ * "uniVer": "-",
852
+ * "unixVer": "-"
853
+ * }
854
+ * }
855
+ * }
856
+ */
857
+ referrerPath?: string | null;
858
+ /**
859
+ * 需要基础库: `2.13.0`
860
+ *
861
+ * `origin`: 发送完整的referrer; `no-referrer`: 不发送。格式固定为 `https://servicewechat.com/{appid}/{version}/page-frame.html`,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
862
+ *
863
+ * @uniPlatform {
864
+ * "mp": {
865
+ * "weixin": {
866
+ * "hostVer": "2.13.0",
867
+ * "uniVer": "√",
868
+ * "unixVer": "4.41"
869
+ * },
870
+ * "alipay": {
871
+ * "hostVer": "-",
872
+ * "uniVer": "-",
873
+ * "unixVer": "-"
874
+ * },
875
+ * "baidu": {
876
+ * "hostVer": "-",
877
+ * "uniVer": "-",
878
+ * "unixVer": "-"
879
+ * },
880
+ * "toutiao": {
881
+ * "hostVer": "-",
882
+ * "uniVer": "-",
883
+ * "unixVer": "-"
884
+ * },
885
+ * "lark": {
886
+ * "hostVer": "-",
887
+ * "uniVer": "-",
888
+ * "unixVer": "-"
889
+ * },
890
+ * "qq": {
891
+ * "hostVer": "-",
892
+ * "uniVer": "-",
893
+ * "unixVer": "-"
894
+ * },
895
+ * "kuaishou": {
896
+ * "hostVer": "-",
897
+ * "uniVer": "-",
898
+ * "unixVer": "-"
899
+ * },
900
+ * "jd": {
901
+ * "hostVer": "-",
902
+ * "uniVer": "-",
903
+ * "unixVer": "-"
904
+ * }
905
+ * }
906
+ * }
907
+ */
908
+ referrerPolicy?: string | null;
755
909
  }
756
910
  /**
757
911
  * 错误码
@@ -892,4 +1046,4 @@ export type CreateBackgroundAudioErrorCode =
892
1046
 
893
1047
  export interface ICreateBackgroundAudioFail extends IUniError {
894
1048
  errCode : CreateBackgroundAudioErrorCode
895
- };
1049
+ };
@@ -156,7 +156,7 @@ export interface Uni {
156
156
  * }
157
157
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.onNetworkStatusChange.html
158
158
  */
159
- onNetworkStatusChange: OnNetworkStatusChange;
159
+ onNetworkStatusChange(callback: OnNetworkStatusChangeCallback): void;
160
160
  /**
161
161
  * 取消监听网络状态变化
162
162
  *
@@ -229,7 +229,7 @@ export interface Uni {
229
229
  * }
230
230
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.offNetworkStatusChange.html
231
231
  */
232
- offNetworkStatusChange: OffNetworkStatusChange;
232
+ offNetworkStatusChange(callback: (result: any) => void): void;
233
233
  }
234
234
 
235
235
  export type GetNetworkType = (options: GetNetworkTypeOptions) => void;
@@ -415,5 +415,5 @@ export interface Uni {
415
415
  * }
416
416
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.html
417
417
  */
418
- getPerformance: GetPerformance
418
+ getPerformance: () => Performance
419
419
  }
@@ -116,7 +116,7 @@ export interface Uni {
116
116
  * }
117
117
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.html
118
118
  */
119
- getRecorderManager: GetRecorderManager;
119
+ getRecorderManager(): RecorderManager
120
120
  }
121
121
  export type GetRecorderManager = () => RecorderManager;
122
122
  export type RecorderManagerStartOptions = {
@@ -675,5 +675,5 @@ export interface Uni {
675
675
  * }
676
676
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/font/wx.loadFontFace.html
677
677
  */
678
- loadFontFace: LoadFontFace
678
+ loadFontFace(options: LoadFontFaceOptions): Promise<LoadFontFaceSuccess> | null
679
679
  }
@@ -71,7 +71,7 @@ export interface Uni {
71
71
  * }
72
72
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/phone/wx.makePhoneCall.html
73
73
  */
74
- makePhoneCall: MakePhoneCall;
74
+ makePhoneCall(options: MakePhoneCallOptions): void;
75
75
  }
76
76
 
77
77
  export type MakePhoneCall = (options: MakePhoneCallOptions) => void;
@@ -15,7 +15,8 @@ import {
15
15
  ChooseImageOptions as ChooseImageOptionsOrigin,
16
16
  ChooseImage as ChooseImageOrigin,
17
17
  PreviewImageSuccess as PreviewImageSuccessOrigin,
18
- LongPressActionsSuccessData as LongPressActionsSuccessDataOrigin,
18
+ LongPressActionsSuccessResult as LongPressActionsSuccessResultOrigin,
19
+ LongPressActionsFailResult as LongPressActionsFailResultOrigin,
19
20
  LongPressActionsOptions as LongPressActionsOptionsOrigin,
20
21
  PreviewImageFail as PreviewImageFailOrigin,
21
22
  PreviewImageSuccessCallback as PreviewImageSuccessCallbackOrigin,
@@ -109,7 +110,8 @@ declare global {
109
110
  type ChooseImageOptions = ChooseImageOptionsOrigin
110
111
  type ChooseImage = ChooseImageOrigin
111
112
  type PreviewImageSuccess = PreviewImageSuccessOrigin
112
- type LongPressActionsSuccessData = LongPressActionsSuccessDataOrigin
113
+ type LongPressActionsSuccessResult = LongPressActionsSuccessResultOrigin
114
+ type LongPressActionsFailResult = LongPressActionsFailResultOrigin
113
115
  type LongPressActionsOptions = LongPressActionsOptionsOrigin
114
116
  type PreviewImageFail = PreviewImageFailOrigin
115
117
  type PreviewImageSuccessCallback = PreviewImageSuccessCallbackOrigin
@@ -15,7 +15,8 @@ export {
15
15
  ChooseImageOptions,
16
16
  ChooseImage,
17
17
  PreviewImageSuccess,
18
- LongPressActionsSuccessData,
18
+ LongPressActionsSuccessResult,
19
+ LongPressActionsFailResult,
19
20
  LongPressActionsOptions,
20
21
  PreviewImageFail,
21
22
  PreviewImageSuccessCallback,