@dcloudio/uni-app-x 0.7.44 → 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 (48) 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/IUniElement.d.ts +3 -1
  5. package/types/native/IUniNativeViewElement.d.ts +2 -0
  6. package/types/native/UniAnimation.d.ts +9 -4
  7. package/types/native/UniNativePage.d.ts +3 -20
  8. package/types/native/UniPageBody.d.ts +110 -0
  9. package/types/native/global.d.ts +2 -0
  10. package/types/native/index.d.ts +1 -0
  11. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  12. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  13. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +2 -2
  15. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
  16. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +2 -2
  17. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +3 -3
  18. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  19. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  20. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  21. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +1 -1
  23. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +30 -30
  25. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
  26. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  27. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  28. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
  29. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  30. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
  31. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
  32. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
  33. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +101 -415
  34. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
  37. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +249 -335
  38. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +1 -1
  39. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +615 -76
  40. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -0
  41. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -0
  42. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +277 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
  44. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
  45. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +0 -2
  46. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +0 -1
  47. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +84 -87
  48. package/types/uni/uts-plugin-extend/README.md +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.44",
3
+ "version": "0.7.46",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -2,27 +2,27 @@ import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
2
2
 
3
3
  export type UniPageBody = {
4
4
  /**
5
- * pageBody 距离顶部的距离
5
+ * 安全区域左上角纵坐标,单位为px
6
6
  */
7
7
  top: number,
8
8
  /**
9
- * pageBody 距离右侧的距离
10
- */
11
- right: number,
12
- /**
13
- * pageBody 距离底部的距离
9
+ * 安全区域右下角纵坐标,单位为px
14
10
  */
15
11
  bottom: number,
16
12
  /**
17
- * pageBody 距离左侧的距离
13
+ * 安全区域左上角横坐标,单位为px
18
14
  */
19
15
  left: number,
20
16
  /**
21
- * pageBody 的宽度
17
+ * 安全区域右下角横坐标,单位为px
18
+ */
19
+ right: number,
20
+ /**
21
+ * 安全区域的宽度,单位为px
22
22
  */
23
23
  width: number,
24
24
  /**
25
- * pageBody 的高度
25
+ * 安全区域的高度,单位为px
26
26
  */
27
27
  height: number
28
28
  }
@@ -1414,7 +1414,7 @@ export type CanvasTextRendering =
1414
1414
  "geometricPrecision";
1415
1415
 
1416
1416
  /**
1417
- * 描述canvas元素的一个隐含像素数据的区域
1417
+ * 描述canvas元素的一个隐含像素数据的区域,注意:App平台ImageData只支持context接口获取不支持通过new ImageData方式创建
1418
1418
  * @uniPlatform {
1419
1419
  * "app": {
1420
1420
  * "android": {
@@ -1435,8 +1435,71 @@ export type CanvasTextRendering =
1435
1435
  * }
1436
1436
  */
1437
1437
  export interface ImageData {
1438
+ /**
1439
+ * 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示
1440
+ * @uniPlatform {
1441
+ * "app": {
1442
+ * "android": {
1443
+ * "osVer": "5.0",
1444
+ * "uniVer": "√",
1445
+ * "unixVer": "4.25"
1446
+ * },
1447
+ * "ios": {
1448
+ * "osVer": "12.0",
1449
+ * "uniVer": "√",
1450
+ * "unixVer": "4.25"
1451
+ * }
1452
+ * }
1453
+ * "web": {
1454
+ * "uniVer": "√",
1455
+ * "unixVer": "4.0"
1456
+ * }
1457
+ * }
1458
+ */
1438
1459
  readonly data: Uint8ClampedArray
1460
+ /**
1461
+ * 使用像素描述 ImageData 的实际宽度
1462
+ * @uniPlatform {
1463
+ * "app": {
1464
+ * "android": {
1465
+ * "osVer": "5.0",
1466
+ * "uniVer": "√",
1467
+ * "unixVer": "4.25"
1468
+ * },
1469
+ * "ios": {
1470
+ * "osVer": "12.0",
1471
+ * "uniVer": "√",
1472
+ * "unixVer": "4.25"
1473
+ * }
1474
+ * }
1475
+ * "web": {
1476
+ * "uniVer": "√",
1477
+ * "unixVer": "4.0"
1478
+ * }
1479
+ * }
1480
+ */
1439
1481
  readonly width: number
1482
+ /**
1483
+ * 使用像素描述 ImageData 的实际高度
1484
+ * @uniPlatform {
1485
+ * "app": {
1486
+ * "android": {
1487
+ * "osVer": "5.0",
1488
+ * "uniVer": "√",
1489
+ * "unixVer": "4.25"
1490
+ * },
1491
+ * "ios": {
1492
+ * "osVer": "12.0",
1493
+ * "uniVer": "√",
1494
+ * "unixVer": "4.25"
1495
+ * }
1496
+ * }
1497
+ * "web": {
1498
+ * "uniVer": "√",
1499
+ * "unixVer": "4.0"
1500
+ * }
1501
+ * }
1502
+ */
1440
1503
  readonly height: number
1441
1504
  }
1442
1505
  /**
@@ -1811,6 +1811,8 @@ export interface UniElement {
1811
1811
 
1812
1812
  /**
1813
1813
  * 创建一个新的动画并应用于元素,然后立即执行动画。
1814
+ * @param {any} keyframes 关键帧对象数组或一个关键帧对象。
1815
+ * @param {any} options 动画属性配置。
1814
1816
  * @uniPlatform {
1815
1817
  * "app": {
1816
1818
  * "android": {
@@ -1837,7 +1839,7 @@ export interface UniElement {
1837
1839
  * }
1838
1840
  * }
1839
1841
  */
1840
- animate(keyframes : any, options : UTSJSONObject) : UniAnimation | null
1842
+ animate(keyframes : any, options : any) : UniAnimation | null
1841
1843
  }
1842
1844
 
1843
1845
  export type INode = UniElement
@@ -55,6 +55,8 @@ export interface UniNativeViewElement extends UniElement {
55
55
  * }
56
56
  */
57
57
  bindIOSView(view: UIView): void
58
+ bindHarmonyFrameNode(node: FrameNode): void
59
+ bindHarmonyWrappedBuilder<O extends Object>(builder: WrappedBuilder<[options: O]>, options?: ESObject): BuilderNode<[O]>
58
60
  }
59
61
 
60
62
  export let UniNativeViewElement: {
@@ -1,4 +1,9 @@
1
1
  import { UniAnimationPlaybackEvent } from "./UniAnimationPlaybackEvent"
2
+
3
+ type UniAnimationOnCancel = (event : UniAnimationPlaybackEvent) => void
4
+
5
+ type UniAnimationOnFinish = (event : UniAnimationPlaybackEvent) => void
6
+
2
7
  /**
3
8
  * @package io.dcloud.uniapp.runtime
4
9
  * @uniPlatform {
@@ -126,7 +131,7 @@ export class UniAnimation {
126
131
  * }
127
132
  * }
128
133
  */
129
- id : String
134
+ id : string
130
135
  /**
131
136
  * 返回动画播放状态。可选值:`running`动画正在运行;`paused`动画暂停;`finished`动画播放完成;`idle`动画取消或者失败
132
137
  * @uniPlatform {
@@ -190,7 +195,7 @@ export class UniAnimation {
190
195
  * }
191
196
  * }
192
197
  */
193
- playState : String
198
+ playState : string
194
199
  /**
195
200
  * 监听动画取消事件
196
201
  * @uniPlatform {
@@ -254,7 +259,7 @@ export class UniAnimation {
254
259
  * }
255
260
  * }
256
261
  */
257
- oncancel : ((event : UniAnimationPlaybackEvent) => void) | null
262
+ oncancel : UniAnimationOnCancel | null
258
263
  /**
259
264
  * 监听动画完成事件
260
265
  * @uniPlatform {
@@ -318,7 +323,7 @@ export class UniAnimation {
318
323
  * }
319
324
  * }
320
325
  */
321
- onfinish : ((event : UniAnimationPlaybackEvent) => void) | null
326
+ onfinish : UniAnimationOnFinish | null
322
327
  /**
323
328
  * 终止并取消所有动画
324
329
  * @uniPlatform {
@@ -6,6 +6,7 @@ import { NativeLoadFontFaceOptions } from "./NativeLoadFontFaceOptions"
6
6
  import { UniCallbackWrapper } from "./UniCallbackWrapper"
7
7
  import { ViewToTempFilePathOptions } from "./ViewToTempFilePathOptions"
8
8
  import { UniSafeAreaInsets } from "./UniSafeAreaInsets"
9
+ import { UniPageBody } from "./UniPageBody"
9
10
 
10
11
  /**
11
12
  * @package io.dcloud.uniapp.runtime
@@ -27,7 +28,7 @@ export interface UniNativePage {
27
28
  */
28
29
  readonly document: UniDocument
29
30
  /**
30
- * 可使用窗口宽度
31
+ * 页面内容区域信息
31
32
  * @uniPlatform {
32
33
  * "app": {
33
34
  * "android": {
@@ -43,25 +44,7 @@ export interface UniNativePage {
43
44
  * }
44
45
  * }
45
46
  */
46
- readonly innerWidth: number
47
- /**
48
- * 可使用窗口高度
49
- * @uniPlatform {
50
- * "app": {
51
- * "android": {
52
- * "osVer": "5.0",
53
- * "uniVer": "x",
54
- * "unixVer": "4.51"
55
- * },
56
- * "ios": {
57
- * "osVer": "12.0",
58
- * "uniVer": "x",
59
- * "unixVer": "4.51"
60
- * }
61
- * }
62
- * }
63
- */
64
- readonly innerHeight: number
47
+ readonly pageBody: UniPageBody
65
48
  /**
66
49
  * 安全区域插入位置(与屏幕边界的距离)信息
67
50
  * @uniPlatform {
@@ -0,0 +1,110 @@
1
+ export type UniPageBody = {
2
+ /**
3
+ * 页面内容区域左上角横坐标
4
+ * @uniPlatform {
5
+ * "app": {
6
+ * "android": {
7
+ * "osVer": "5.0",
8
+ * "uniVer": "x",
9
+ * "unixVer": "4.51"
10
+ * },
11
+ * "ios": {
12
+ * "osVer": "12.0",
13
+ * "uniVer": "x",
14
+ * "unixVer": "4.51"
15
+ * }
16
+ * }
17
+ * }
18
+ */
19
+ readonly left: number
20
+ /**
21
+ * 页面内容区域右下角横坐标
22
+ * @uniPlatform {
23
+ * "app": {
24
+ * "android": {
25
+ * "osVer": "5.0",
26
+ * "uniVer": "x",
27
+ * "unixVer": "4.51"
28
+ * },
29
+ * "ios": {
30
+ * "osVer": "12.0",
31
+ * "uniVer": "x",
32
+ * "unixVer": "4.51"
33
+ * }
34
+ * }
35
+ * }
36
+ */
37
+ readonly right: number
38
+ /**
39
+ * 页面内容区域左上角纵坐标
40
+ * @uniPlatform {
41
+ * "app": {
42
+ * "android": {
43
+ * "osVer": "5.0",
44
+ * "uniVer": "x",
45
+ * "unixVer": "4.51"
46
+ * },
47
+ * "ios": {
48
+ * "osVer": "12.0",
49
+ * "uniVer": "x",
50
+ * "unixVer": "4.51"
51
+ * }
52
+ * }
53
+ * }
54
+ */
55
+ readonly top: number
56
+ /**
57
+ * 页面内容区域右下角纵坐标
58
+ * @uniPlatform {
59
+ * "app": {
60
+ * "android": {
61
+ * "osVer": "5.0",
62
+ * "uniVer": "x",
63
+ * "unixVer": "4.51"
64
+ * },
65
+ * "ios": {
66
+ * "osVer": "12.0",
67
+ * "uniVer": "x",
68
+ * "unixVer": "4.51"
69
+ * }
70
+ * }
71
+ * }
72
+ */
73
+ readonly bottom: number
74
+ /**
75
+ * 页面内容区域宽度
76
+ * @uniPlatform {
77
+ * "app": {
78
+ * "android": {
79
+ * "osVer": "5.0",
80
+ * "uniVer": "x",
81
+ * "unixVer": "4.51"
82
+ * },
83
+ * "ios": {
84
+ * "osVer": "12.0",
85
+ * "uniVer": "x",
86
+ * "unixVer": "4.51"
87
+ * }
88
+ * }
89
+ * }
90
+ */
91
+ readonly width: number
92
+ /**
93
+ * 页面内容区域高度
94
+ * @uniPlatform {
95
+ * "app": {
96
+ * "android": {
97
+ * "osVer": "5.0",
98
+ * "uniVer": "x",
99
+ * "unixVer": "4.51"
100
+ * },
101
+ * "ios": {
102
+ * "osVer": "12.0",
103
+ * "uniVer": "x",
104
+ * "unixVer": "4.51"
105
+ * }
106
+ * }
107
+ * }
108
+ */
109
+ readonly height: number
110
+ }
@@ -99,6 +99,7 @@ import {
99
99
  IPageManager as IPageManagerOrigin,
100
100
  UniPageEvent as UniPageEventOrigin,
101
101
  PageEvent as PageEventOrigin,
102
+ UniPageBody as UniPageBodyOrigin,
102
103
  UniNestedPreScrollEvent as UniNestedPreScrollEventOrigin,
103
104
  NestedPreScrollEvent as NestedPreScrollEventOrigin,
104
105
  UniNativePage as UniNativePageOrigin,
@@ -421,6 +422,7 @@ declare global {
421
422
  type UniPageEvent = UniPageEventOrigin
422
423
  const PageEvent: typeof PageEventOrigin
423
424
  type PageEvent = PageEventOrigin
425
+ type UniPageBody = UniPageBodyOrigin
424
426
  const UniNestedPreScrollEvent: typeof UniNestedPreScrollEventOrigin
425
427
  type UniNestedPreScrollEvent = UniNestedPreScrollEventOrigin
426
428
  const NestedPreScrollEvent: typeof NestedPreScrollEventOrigin
@@ -34,6 +34,7 @@ export * from './UniPointerEvent'
34
34
  export * from './UniPageScrollEvent'
35
35
  export * from './UniPageManager'
36
36
  export * from './UniPageEvent'
37
+ export * from './UniPageBody'
37
38
  export * from './UniNestedPreScrollEvent'
38
39
  export * from './UniNativePage'
39
40
  export * from './UniNativeApp'
@@ -61,6 +61,7 @@
61
61
  /// <reference path='./lib/uni-rpx2px/utssdk/global.d.ts' />
62
62
  /// <reference path='./lib/uni-scanCode/utssdk/global.d.ts' />
63
63
  /// <reference path='./lib/uni-shareWithSystem/utssdk/global.d.ts' />
64
+ /// <reference path='./lib/uni-sse/utssdk/global.d.ts' />
64
65
  /// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
65
66
  /// <reference path='./lib/uni-tabBar/utssdk/global.d.ts' />
66
67
  /// <reference path='./lib/uni-theme/utssdk/global.d.ts' />
@@ -61,6 +61,7 @@ export * from './lib/uni-route/utssdk'
61
61
  export * from './lib/uni-rpx2px/utssdk'
62
62
  export * from './lib/uni-scanCode/utssdk'
63
63
  export * from './lib/uni-shareWithSystem/utssdk'
64
+ export * from './lib/uni-sse/utssdk'
64
65
  export * from './lib/uni-storage/utssdk'
65
66
  export * from './lib/uni-tabBar/utssdk'
66
67
  export * from './lib/uni-theme/utssdk'
@@ -71,7 +71,7 @@ export interface Uni {
71
71
  * }
72
72
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html
73
73
  */
74
- addPhoneContact: AddPhoneContact;
74
+ addPhoneContact(options: AddPhoneContactOptions): void;
75
75
  }
76
76
 
77
77
  export type AddPhoneContact = (options: AddPhoneContactOptions) => void;
@@ -10,7 +10,7 @@ export interface Uni {
10
10
  * "android": {
11
11
  * "osVer": "5.0",
12
12
  * "uniVer": "√",
13
- * "unixVer": "4.43"
13
+ * "unixVer": "4.51"
14
14
  * },
15
15
  * "ios": {
16
16
  * "osVer": "5.0",
@@ -72,7 +72,7 @@ export interface Uni {
72
72
  * }
73
73
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.arrayBufferToBase64.html
74
74
  */
75
- arrayBufferToBase64: ArrayBufferToBase64;
75
+ arrayBufferToBase64(arrayBuffer: ArrayBuffer): string;
76
76
  }
77
77
 
78
78
  export type ArrayBufferToBase64 = (arrayBuffer: ArrayBuffer) => string;
@@ -73,7 +73,7 @@ export interface Uni {
73
73
  * }
74
74
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.startSoterAuthentication.html
75
75
  */
76
- startSoterAuthentication: StartSoterAuthentication;
76
+ startSoterAuthentication(options: StartSoterAuthenticationOptions): void;
77
77
  /**
78
78
  * 获取本机支持的 SOTER 生物认证方式
79
79
  *
@@ -147,7 +147,7 @@ export interface Uni {
147
147
  * }
148
148
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSupportSoterAuthentication.html
149
149
  */
150
- checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication;
150
+ checkIsSupportSoterAuthentication(options: CheckIsSupportSoterAuthenticationOptions): void;
151
151
  /**
152
152
  * 获取设备内是否录入如指纹等生物信息
153
153
  *
@@ -221,7 +221,7 @@ export interface Uni {
221
221
  * }
222
222
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSoterEnrolledInDevice.html
223
223
  */
224
- checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice;
224
+ checkIsSoterEnrolledInDevice(options: CheckIsSoterEnrolledInDeviceOptions): void;
225
225
  }
226
226
 
227
227
  export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
@@ -10,7 +10,7 @@ export interface Uni {
10
10
  * "android": {
11
11
  * "osVer": "5.0",
12
12
  * "uniVer": "√",
13
- * "unixVer": "4.43"
13
+ * "unixVer": "4.51"
14
14
  * },
15
15
  * "ios": {
16
16
  * "osVer": "5.0",
@@ -72,7 +72,7 @@ export interface Uni {
72
72
  * }
73
73
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.base64ToArrayBuffer.html
74
74
  */
75
- base64ToArrayBuffer: Base64ToArrayBuffer;
75
+ base64ToArrayBuffer(base64: string): ArrayBuffer;
76
76
  }
77
77
 
78
78
  export type Base64ToArrayBuffer = (base64: string) => ArrayBuffer;
@@ -218,7 +218,7 @@ export type ChooseMediaOptions = {
218
218
  count ?: number | null
219
219
  /**
220
220
  * album 从相册选视频,camera 使用相机拍摄,合法值:'image'、'video'、'mix'
221
- * @defaultValue ['image', 'video']
221
+ * @defaultValue ['image', 'video']
222
222
  * @uniPlatform {
223
223
  * "app": {
224
224
  * "android": {
@@ -241,7 +241,7 @@ export type ChooseMediaOptions = {
241
241
  mediaType ?: (string[]) | null,
242
242
  /**
243
243
  * album 从相册选视频,camera 使用相机拍摄
244
- * @defaultValue ['album', 'camera']
244
+ * @defaultValue ['album', 'camera']
245
245
  * @uniPlatform {
246
246
  * "app": {
247
247
  * "android": {
@@ -680,6 +680,6 @@ export interface Uni {
680
680
  * }
681
681
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html
682
682
  */
683
- chooseMedia : ChooseMedia;
683
+ chooseMedia(options : ChooseMediaOptions) : void;
684
684
 
685
685
  }
@@ -71,7 +71,7 @@ export interface Uni {
71
71
  * }
72
72
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.setClipboardData.html
73
73
  */
74
- setClipboardData: SetClipboardData;
74
+ setClipboardData(options: SetClipboardDataOptions): void;
75
75
  /**
76
76
  * 获得系统剪贴板的内容
77
77
  *
@@ -144,7 +144,7 @@ export interface Uni {
144
144
  * }
145
145
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html
146
146
  */
147
- getClipboardData: GetClipboardData;
147
+ getClipboardData(options: GetClipboardDataOptions): void;
148
148
  }
149
149
 
150
150
  export type SetClipboardData = (options: SetClipboardDataOptions) => void;
@@ -72,7 +72,7 @@ export interface Uni {
72
72
  * }
73
73
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/InnerAudioContext.html
74
74
  */
75
- createInnerAudioContext: CreateInnerAudioContext;
75
+ createInnerAudioContext(): InnerAudioContext;
76
76
  }
77
77
 
78
78
  export type CreateInnerAudioContext = () => InnerAudioContext;
@@ -71,7 +71,7 @@ export interface Uni {
71
71
  * }
72
72
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.html
73
73
  */
74
- createIntersectionObserver: CreateIntersectionObserver;
74
+ createIntersectionObserver(component: any, options: CreateIntersectionObserverOptions): IntersectionObserver;
75
75
  }
76
76
 
77
77
  export type CreateIntersectionObserver = (component: any, options: CreateIntersectionObserverOptions) => IntersectionObserver;
@@ -57,5 +57,5 @@ export interface Uni {
57
57
  * }
58
58
  * }
59
59
  */
60
- createRequestPermissionListener : CreateRequestPermissionListener
60
+ createRequestPermissionListener(): RequestPermissionListener
61
61
  }
@@ -133,5 +133,5 @@ export interface Uni {
133
133
  * @uniVueVersion 2,3
134
134
  * @return {WebviewContext} web-view组件上下文对象
135
135
  */
136
- createWebviewContext : CreateWebviewContext
136
+ createWebviewContext(webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null): WebviewContext | null;
137
137
  }
@@ -70,7 +70,7 @@ export interface Uni {
70
70
  * }
71
71
  * }
72
72
  */
73
- createElement: CreateElement;
73
+ createElement(tagName: string): UniElement;
74
74
  }
75
75
 
76
76
  export type CreateElement = (tagName: string) => UniElement;
@@ -3,33 +3,33 @@
3
3
  export type GetAccessibilityInfo = () => UTSJSONObject;
4
4
 
5
5
  export interface Uni {
6
- /**
7
- * 获取app基本信息
8
- * @uniPlatform
9
- * {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "5.0",
13
- * "uniVer": "x",
14
- * "unixVer": "3.9+"
15
- * },
16
- * "ios": {
17
- * "osVer": "x",
18
- * "uniVer": "x",
19
- * "unixVer": "x"
20
- * },
21
- * "harmony": {
22
- * "osVer": "x",
23
- * "uniVer": "x",
24
- * "unixVer": "x"
25
- * }
26
- * }
27
- * }
28
- * @example
29
- ```typescript
30
- uni.getAccessibilityInfo()
31
- ```
32
- * @return {object}
33
- */
34
- getAccessibilityInfo(): UTSJSONObject;
35
- }
6
+ /**
7
+ * 获取无障碍服务信息
8
+ * @uniPlatform
9
+ * {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "x",
14
+ * "unixVer": "4.51"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "x",
18
+ * "uniVer": "x",
19
+ * "unixVer": "x"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "x",
23
+ * "uniVer": "x",
24
+ * "unixVer": "x"
25
+ * }
26
+ * }
27
+ * }
28
+ * @example
29
+ ```typescript
30
+ uni.getAccessibilityInfo()
31
+ ```
32
+ * @return {object}
33
+ */
34
+ getAccessibilityInfo() : UTSJSONObject;
35
+ }