@dcloudio/uni-app-x 0.7.61 → 0.7.63

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 (80) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +36 -1
  3. package/types/dom2/UniCSSProperty.d.ts +446 -0
  4. package/types/dom2/UniCSSType.d.ts +72 -0
  5. package/types/dom2/UniCommon.d.ts +40 -0
  6. package/types/dom2/UniCustomViewElement.d.ts +12 -0
  7. package/types/dom2/UniElement.d.ts +354 -0
  8. package/types/dom2/UniElementType.d.ts +37 -0
  9. package/types/dom2/UniImageElement.d.ts +102 -0
  10. package/types/dom2/UniNativeBaseView.d.ts +178 -0
  11. package/types/dom2/UniNativeCustomView.d.ts +13 -0
  12. package/types/dom2/UniNativeDefines.d.ts +435 -0
  13. package/types/dom2/UniNativeImageView.d.ts +34 -0
  14. package/types/dom2/UniNativeScrollView.d.ts +42 -0
  15. package/types/dom2/UniNativeTextView.d.ts +25 -0
  16. package/types/dom2/UniNativeView.d.ts +51 -0
  17. package/types/dom2/UniNativeViewType.d.ts +22 -0
  18. package/types/dom2/UniPage.d.ts +55 -0
  19. package/types/dom2/UniScrollViewElement.d.ts +13 -0
  20. package/types/dom2/UniTextElement.d.ts +20 -0
  21. package/types/dom2/UniTextLayout.d.ts +386 -0
  22. package/types/dom2/UniViewElement.d.ts +57 -0
  23. package/types/dom2/global.d.ts +189 -0
  24. package/types/dom2/index.d.ts +40 -0
  25. package/types/dom2/sharedData.d.ts +227 -0
  26. package/types/index.d.ts +2 -1
  27. package/types/native/DOMRect.d.ts +2 -1
  28. package/types/native/DrawableContext.d.ts +1665 -1661
  29. package/types/native/IUniElement.d.ts +3514 -2877
  30. package/types/native/SnapshotOptions.d.ts +2 -2
  31. package/types/native/UniAnimation.d.ts +11 -10
  32. package/types/native/UniEvent.d.ts +108 -3
  33. package/types/native/UniPage.d.ts +891 -882
  34. package/types/native/UniTextElement.d.ts +37 -0
  35. package/types/native/UniTextLayout.d.ts +387 -0
  36. package/types/native/UniVideoElement.d.ts +20 -17
  37. package/types/native/Worker.d.ts +19 -0
  38. package/types/native/global.d.ts +28 -68
  39. package/types/native/index.d.ts +18 -1
  40. package/types/page.d.ts +1862 -599
  41. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  42. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  43. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  45. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
  46. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
  49. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
  53. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
  54. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
  55. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
  56. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
  57. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
  58. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
  59. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
  60. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
  61. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
  62. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
  63. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
  64. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
  65. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
  66. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
  67. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
  68. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
  69. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
  70. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
  71. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
  73. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
  74. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
  77. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
  78. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
  79. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
  80. package/uts-plugin.d.ts +11 -0
@@ -12,6 +12,7 @@
12
12
  /// <reference path='./lib/uni-createRequestPermissionListener/utssdk/global.d.ts' />
13
13
  /// <reference path='./lib/uni-createSelectorQuery/utssdk/global.d.ts' />
14
14
  /// <reference path='./lib/uni-createWebviewContext/utssdk/global.d.ts' />
15
+ /// <reference path='./lib/uni-createWorker/utssdk/global.d.ts' />
15
16
  /// <reference path='./lib/uni-dialogPage/utssdk/global.d.ts' />
16
17
  /// <reference path='./lib/uni-event/utssdk/global.d.ts' />
17
18
  /// <reference path='./lib/uni-exit/utssdk/global.d.ts' />
@@ -62,6 +63,7 @@
62
63
  /// <reference path='./lib/uni-route/utssdk/global.d.ts' />
63
64
  /// <reference path='./lib/uni-rpx2px/utssdk/global.d.ts' />
64
65
  /// <reference path='./lib/uni-scanCode/utssdk/global.d.ts' />
66
+ /// <reference path='./lib/uni-screenBrightness/utssdk/global.d.ts' />
65
67
  /// <reference path='./lib/uni-share-weixin/utssdk/global.d.ts' />
66
68
  /// <reference path='./lib/uni-share/utssdk/global.d.ts' />
67
69
  /// <reference path='./lib/uni-shareWithSystem/utssdk/global.d.ts' />
@@ -12,6 +12,7 @@ export * from './lib/uni-createIntersectionObserver/utssdk'
12
12
  export * from './lib/uni-createRequestPermissionListener/utssdk'
13
13
  export * from './lib/uni-createSelectorQuery/utssdk'
14
14
  export * from './lib/uni-createWebviewContext/utssdk'
15
+ export * from './lib/uni-createWorker/utssdk'
15
16
  export * from './lib/uni-dialogPage/utssdk'
16
17
  export * from './lib/uni-event/utssdk'
17
18
  export * from './lib/uni-exit/utssdk'
@@ -62,6 +63,7 @@ export * from './lib/uni-requestMerchantTransfer/utssdk'
62
63
  export * from './lib/uni-route/utssdk'
63
64
  export * from './lib/uni-rpx2px/utssdk'
64
65
  export * from './lib/uni-scanCode/utssdk'
66
+ export * from './lib/uni-screenBrightness/utssdk'
65
67
  export * from './lib/uni-share-weixin/utssdk'
66
68
  export * from './lib/uni-share/utssdk'
67
69
  export * from './lib/uni-shareWithSystem/utssdk'
@@ -80,7 +80,7 @@ export type ChooseMediaTempFile = {
80
80
  */
81
81
  fileType : ChooseMediaFileType
82
82
  /**
83
- * 选定视频的数据量大小
83
+ * 选定视频的数据量大小,单位 B
84
84
  */
85
85
  size : number,
86
86
  /**
@@ -91,8 +91,8 @@ export interface Uni {
91
91
  * "osVer": "12.0",
92
92
  * "uniVer": "x",
93
93
  * "uniUtsPlugin": "x",
94
- * "unixVer": "4.76",
95
- * "unixUtsPlugin": "4.76"
94
+ * "unixVer": "4.81",
95
+ * "unixUtsPlugin": "4.81"
96
96
  * },
97
97
  * "harmony": {
98
98
  * "osVer": "5.0.0",
@@ -176,8 +176,8 @@ export type SetInnerAudioOptionOptions = {
176
176
  "osVer": "12.0",
177
177
  "uniVer": "x",
178
178
  "uniUtsPlugin": "x",
179
- "unixVer": "4.76",
180
- "unixUtsPlugin": "4.76"
179
+ "unixVer": "4.81",
180
+ "unixUtsPlugin": "4.81"
181
181
  },
182
182
  "harmony": {
183
183
  "osVer": "5.0.0",
@@ -249,8 +249,8 @@ export type SetInnerAudioOptionOptions = {
249
249
  "osVer": "12.0",
250
250
  "uniVer": "x",
251
251
  "uniUtsPlugin": "x",
252
- "unixVer": "4.76",
253
- "unixUtsPlugin": "4.76"
252
+ "unixVer": "4.81",
253
+ "unixUtsPlugin": "4.81"
254
254
  },
255
255
  "harmony": {
256
256
  "osVer": "5.0.0",
@@ -322,8 +322,8 @@ export type SetInnerAudioOptionOptions = {
322
322
  "osVer": "12.0",
323
323
  "uniVer": "x",
324
324
  "uniUtsPlugin": "x",
325
- "unixVer": "4.76",
326
- "unixUtsPlugin": "4.76"
325
+ "unixVer": "4.81",
326
+ "unixUtsPlugin": "4.81"
327
327
  },
328
328
  "harmony": {
329
329
  "osVer": "5.0.0",
@@ -395,8 +395,8 @@ export type SetInnerAudioOptionOptions = {
395
395
  "osVer": "12.0",
396
396
  "uniVer": "x",
397
397
  "uniUtsPlugin": "x",
398
- "unixVer": "4.76",
399
- "unixUtsPlugin": "4.76"
398
+ "unixVer": "4.81",
399
+ "unixUtsPlugin": "4.81"
400
400
  },
401
401
  "harmony": {
402
402
  "osVer": "5.0.0",
@@ -1,6 +1,5 @@
1
1
  export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
2
2
 
3
-
4
3
  export type UniWebviewContextLoadDataOptions = {
5
4
  /**
6
5
  * 要加载的内容,编码后的字符串
@@ -0,0 +1,22 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ WorkerOnErrorCallbackResultErrorCode as WorkerOnErrorCallbackResultErrorCodeOrigin,
4
+ WorkerOnErrorCallbackResult as WorkerOnErrorCallbackResultOrigin,
5
+ WorkerOnMessageCallback as WorkerOnMessageCallbackOrigin,
6
+ WorkerOnErrorCallback as WorkerOnErrorCallbackOrigin,
7
+ WorkerPostMessageOptions as WorkerPostMessageOptionsOrigin,
8
+ Worker as WorkerOrigin,
9
+ CreateWorker as CreateWorkerOrigin,
10
+ Uni as UniOrigin
11
+ } from './interface'
12
+
13
+ declare global {
14
+ type WorkerOnErrorCallbackResultErrorCode = WorkerOnErrorCallbackResultErrorCodeOrigin
15
+ type WorkerOnErrorCallbackResult = WorkerOnErrorCallbackResultOrigin
16
+ type WorkerOnMessageCallback = WorkerOnMessageCallbackOrigin
17
+ type WorkerOnErrorCallback = WorkerOnErrorCallbackOrigin
18
+ type WorkerPostMessageOptions = WorkerPostMessageOptionsOrigin
19
+ type Worker = WorkerOrigin
20
+ type CreateWorker = CreateWorkerOrigin
21
+ interface Uni extends UniOrigin { }
22
+ }
@@ -0,0 +1,10 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ WorkerOnErrorCallbackResultErrorCode,
4
+ WorkerOnErrorCallbackResult,
5
+ WorkerOnMessageCallback,
6
+ WorkerOnErrorCallback,
7
+ WorkerPostMessageOptions,
8
+ Worker,
9
+ CreateWorker,
10
+ } from './interface'
@@ -0,0 +1,524 @@
1
+ export type WorkerOnErrorCallbackResultErrorCode =
2
+ /**
3
+ * worker 运行错误
4
+ */
5
+ 5000501 |
6
+ /**
7
+ * worker 序列化失败
8
+ */
9
+ 5000502 |
10
+ /**
11
+ * worker 实例未运行
12
+ */
13
+ 5000503 |
14
+ /**
15
+ * worker 线程中不支持调用的API。
16
+ */
17
+ 5000504 |
18
+ /**
19
+ * worker 线程初始化失败
20
+ */
21
+ 5000505 |
22
+ /**
23
+ * worker 文件路径无效
24
+ */
25
+ 5000506 |
26
+ /**
27
+ * 非主线程调用worker API
28
+ */
29
+ 5000510 |
30
+ /**
31
+ * worker 线程无效
32
+ */
33
+ 5000511
34
+
35
+ export interface WorkerOnErrorCallbackResult extends IUniError {
36
+ errCode: WorkerOnErrorCallbackResultErrorCode
37
+ };
38
+ //监听消息Callback
39
+ export type WorkerOnMessageCallback = (message: any) => void;
40
+ //Worker错误callback
41
+ export type WorkerOnErrorCallback = (result: WorkerOnErrorCallbackResult) => void;
42
+ //发送消息扩展参数
43
+ export type WorkerPostMessageOptions = {
44
+ /**
45
+ * 是否支持符合Sendable协议的对象作为共享变量发送,使用postMessageWithSharedSendable实现,默认值为false
46
+ * 仅鸿蒙平台支持,参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/arkts-sendable
47
+ *
48
+ * @uniPlatform {
49
+ * "app": {
50
+ * "android": {
51
+ * "osVer": "x",
52
+ * "uniVer": "x",
53
+ * "unixVer": "x"
54
+ * },
55
+ * "ios": {
56
+ * "osVer": "x",
57
+ * "uniVer": "x",
58
+ * "unixVer": "x"
59
+ * },
60
+ * "harmony": {
61
+ * "osVer": "5.0.0",
62
+ * "uniVer": "x",
63
+ * "unixVer": "4.81"
64
+ * }
65
+ * },
66
+ * "web": {
67
+ * "uniVer": "x",
68
+ * "unixVer": "x"
69
+ * }
70
+ * }
71
+ */
72
+ harmonySendable?: boolean
73
+ /**
74
+ * 可转移对象数组,默认值为空数组
75
+ * 仅鸿蒙、web平台支持,参考:https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Workers_API/Transferable_objects
76
+ *
77
+ * @uniPlatform {
78
+ * "app": {
79
+ * "android": {
80
+ * "osVer": "x",
81
+ * "uniVer": "x",
82
+ * "unixVer": "x"
83
+ * },
84
+ * "ios": {
85
+ * "osVer": "x",
86
+ * "uniVer": "x",
87
+ * "unixVer": "x"
88
+ * },
89
+ * "harmony": {
90
+ * "osVer": "5.0.0",
91
+ * "uniVer": "x",
92
+ * "unixVer": "4.81"
93
+ * }
94
+ * },
95
+ * "web": {
96
+ * "uniVer": "x",
97
+ * "unixVer": "4.81"
98
+ * }
99
+ * }
100
+ */
101
+ transfer?: any[]
102
+ }
103
+ //Worker对象
104
+ export interface Worker {
105
+ /**
106
+ * 监听主线程/Worker 线程向当前线程发送的消息的事件。
107
+ * @uniPlatform {
108
+ * "mp": {
109
+ * "weixin": {
110
+ * "hostVer": "√",
111
+ * "uniVer": "√",
112
+ * "unixVer": "4.41"
113
+ * },
114
+ * "alipay": {
115
+ * "hostVer": "-",
116
+ * "uniVer": "-",
117
+ * "unixVer": "-"
118
+ * },
119
+ * "baidu": {
120
+ * "hostVer": "-",
121
+ * "uniVer": "-",
122
+ * "unixVer": "-"
123
+ * },
124
+ * "toutiao": {
125
+ * "hostVer": "-",
126
+ * "uniVer": "-",
127
+ * "unixVer": "-"
128
+ * },
129
+ * "lark": {
130
+ * "hostVer": "-",
131
+ * "uniVer": "-",
132
+ * "unixVer": "-"
133
+ * },
134
+ * "qq": {
135
+ * "hostVer": "-",
136
+ * "uniVer": "-",
137
+ * "unixVer": "-"
138
+ * },
139
+ * "kuaishou": {
140
+ * "hostVer": "-",
141
+ * "uniVer": "-",
142
+ * "unixVer": "-"
143
+ * },
144
+ * "jd": {
145
+ * "hostVer": "-",
146
+ * "uniVer": "-",
147
+ * "unixVer": "-"
148
+ * }
149
+ * }
150
+ * }
151
+ */
152
+ onMessage(callback: WorkerOnMessageCallback): void;
153
+ /**
154
+ * 监听 Worker 线程错误事件。当 Worker 线程中发生脚本错误时会触发此事件。
155
+ * @uniPlatform {
156
+ * "mp": {
157
+ * "weixin": {
158
+ * "hostVer": "√",
159
+ * "uniVer": "√",
160
+ * "unixVer": "4.41"
161
+ * },
162
+ * "alipay": {
163
+ * "hostVer": "-",
164
+ * "uniVer": "-",
165
+ * "unixVer": "-"
166
+ * },
167
+ * "baidu": {
168
+ * "hostVer": "-",
169
+ * "uniVer": "-",
170
+ * "unixVer": "-"
171
+ * },
172
+ * "toutiao": {
173
+ * "hostVer": "-",
174
+ * "uniVer": "-",
175
+ * "unixVer": "-"
176
+ * },
177
+ * "lark": {
178
+ * "hostVer": "-",
179
+ * "uniVer": "-",
180
+ * "unixVer": "-"
181
+ * },
182
+ * "qq": {
183
+ * "hostVer": "-",
184
+ * "uniVer": "-",
185
+ * "unixVer": "-"
186
+ * },
187
+ * "kuaishou": {
188
+ * "hostVer": "-",
189
+ * "uniVer": "-",
190
+ * "unixVer": "-"
191
+ * },
192
+ * "jd": {
193
+ * "hostVer": "-",
194
+ * "uniVer": "-",
195
+ * "unixVer": "-"
196
+ * }
197
+ * }
198
+ * }
199
+ */
200
+ onError(callback: WorkerOnErrorCallback): void;
201
+ /**
202
+ * 向主线程/Worker 线程发送的消息。
203
+ * @uniPlatform {
204
+ * "mp": {
205
+ * "weixin": {
206
+ * "hostVer": "√",
207
+ * "uniVer": "√",
208
+ * "unixVer": "4.41"
209
+ * },
210
+ * "alipay": {
211
+ * "hostVer": "-",
212
+ * "uniVer": "-",
213
+ * "unixVer": "-"
214
+ * },
215
+ * "baidu": {
216
+ * "hostVer": "-",
217
+ * "uniVer": "-",
218
+ * "unixVer": "-"
219
+ * },
220
+ * "toutiao": {
221
+ * "hostVer": "-",
222
+ * "uniVer": "-",
223
+ * "unixVer": "-"
224
+ * },
225
+ * "lark": {
226
+ * "hostVer": "-",
227
+ * "uniVer": "-",
228
+ * "unixVer": "-"
229
+ * },
230
+ * "qq": {
231
+ * "hostVer": "-",
232
+ * "uniVer": "-",
233
+ * "unixVer": "-"
234
+ * },
235
+ * "kuaishou": {
236
+ * "hostVer": "-",
237
+ * "uniVer": "-",
238
+ * "unixVer": "-"
239
+ * },
240
+ * "jd": {
241
+ * "hostVer": "-",
242
+ * "uniVer": "-",
243
+ * "unixVer": "-"
244
+ * }
245
+ * }
246
+ * }
247
+ */
248
+ postMessage(message: any, options?: WorkerPostMessageOptions | null): void;
249
+ /**
250
+ * 结束当前 Worker 线程。仅限在主线程 worker 对象上调用。
251
+ * @uniPlatform {
252
+ * "mp": {
253
+ * "weixin": {
254
+ * "hostVer": "√",
255
+ * "uniVer": "√",
256
+ * "unixVer": "4.41"
257
+ * },
258
+ * "alipay": {
259
+ * "hostVer": "-",
260
+ * "uniVer": "-",
261
+ * "unixVer": "-"
262
+ * },
263
+ * "baidu": {
264
+ * "hostVer": "-",
265
+ * "uniVer": "-",
266
+ * "unixVer": "-"
267
+ * },
268
+ * "toutiao": {
269
+ * "hostVer": "-",
270
+ * "uniVer": "-",
271
+ * "unixVer": "-"
272
+ * },
273
+ * "lark": {
274
+ * "hostVer": "-",
275
+ * "uniVer": "-",
276
+ * "unixVer": "-"
277
+ * },
278
+ * "qq": {
279
+ * "hostVer": "-",
280
+ * "uniVer": "-",
281
+ * "unixVer": "-"
282
+ * },
283
+ * "kuaishou": {
284
+ * "hostVer": "-",
285
+ * "uniVer": "-",
286
+ * "unixVer": "-"
287
+ * },
288
+ * "jd": {
289
+ * "hostVer": "-",
290
+ * "uniVer": "-",
291
+ * "unixVer": "-"
292
+ * }
293
+ * }
294
+ * }
295
+ */
296
+ terminate(): void;
297
+ /**
298
+ * worker内的环境变量
299
+ *
300
+ * @uniPlatform {
301
+ * "mp": {
302
+ * "weixin": {
303
+ * "hostVer": "√",
304
+ * "uniVer": "√",
305
+ * "unixVer": "4.41"
306
+ * },
307
+ * "alipay": {
308
+ * "hostVer": "-",
309
+ * "uniVer": "-",
310
+ * "unixVer": "-"
311
+ * },
312
+ * "baidu": {
313
+ * "hostVer": "-",
314
+ * "uniVer": "-",
315
+ * "unixVer": "-"
316
+ * },
317
+ * "toutiao": {
318
+ * "hostVer": "-",
319
+ * "uniVer": "-",
320
+ * "unixVer": "-"
321
+ * },
322
+ * "lark": {
323
+ * "hostVer": "-",
324
+ * "uniVer": "-",
325
+ * "unixVer": "-"
326
+ * },
327
+ * "qq": {
328
+ * "hostVer": "-",
329
+ * "uniVer": "-",
330
+ * "unixVer": "-"
331
+ * },
332
+ * "kuaishou": {
333
+ * "hostVer": "-",
334
+ * "uniVer": "-",
335
+ * "unixVer": "-"
336
+ * },
337
+ * "jd": {
338
+ * "hostVer": "-",
339
+ * "uniVer": "-",
340
+ * "unixVer": "-"
341
+ * }
342
+ * }
343
+ * }
344
+ */
345
+ env?: WorkerEnv | null;
346
+ }
347
+ export type CreateWorker = (url: string) => Worker
348
+ export interface Uni {
349
+ /**
350
+ * 创建一个Worker对象
351
+ * @param url Worker脚本的URL
352
+ *
353
+ * @uniPlatform {
354
+ * "app": {
355
+ * "android": {
356
+ * "osVer": "5.0",
357
+ * "uniVer": "x",
358
+ * "unixVer": "4.81",
359
+ * "unixUtsPlugin": "4.81"
360
+ * },
361
+ * "ios": {
362
+ * "osVer": "12.0",
363
+ * "uniVer": "x",
364
+ * "unixVer": "x",
365
+ * "unixUtsPlugin": "4.81"
366
+ * },
367
+ * "harmony": {
368
+ * "osVer": "5.0.0",
369
+ * "uniVer": "x",
370
+ * "unixVer": "4.81",
371
+ * "unixUtsPlugin": "4.81"
372
+ * }
373
+ * },
374
+ * "web": {
375
+ * "uniVer": "x",
376
+ * "unixVer": "4.81"
377
+ * },
378
+ * "mp": {
379
+ * "weixin": {
380
+ * "hostVer": "1.9.90",
381
+ * "uniVer": "√",
382
+ * "unixVer": "4.41"
383
+ * },
384
+ * "alipay": {
385
+ * "hostVer": "-",
386
+ * "uniVer": "-",
387
+ * "unixVer": "-"
388
+ * },
389
+ * "baidu": {
390
+ * "hostVer": "-",
391
+ * "uniVer": "-",
392
+ * "unixVer": "-"
393
+ * },
394
+ * "toutiao": {
395
+ * "hostVer": "-",
396
+ * "uniVer": "-",
397
+ * "unixVer": "-"
398
+ * },
399
+ * "lark": {
400
+ * "hostVer": "-",
401
+ * "uniVer": "-",
402
+ * "unixVer": "-"
403
+ * },
404
+ * "qq": {
405
+ * "hostVer": "-",
406
+ * "uniVer": "-",
407
+ * "unixVer": "-"
408
+ * },
409
+ * "kuaishou": {
410
+ * "hostVer": "-",
411
+ * "uniVer": "-",
412
+ * "unixVer": "-"
413
+ * },
414
+ * "jd": {
415
+ * "hostVer": "-",
416
+ * "uniVer": "-",
417
+ * "unixVer": "-"
418
+ * }
419
+ * }
420
+ * }
421
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.html
422
+ */
423
+ createWorker: CreateWorker
424
+ }
425
+
426
+ /**
427
+ * worker内的环境变量
428
+ *
429
+ * @uniPlatform {
430
+ * "mp": {
431
+ * "weixin": {
432
+ * "hostVer": "√",
433
+ * "uniVer": "√",
434
+ * "unixVer": "4.41"
435
+ * },
436
+ * "alipay": {
437
+ * "hostVer": "-",
438
+ * "uniVer": "-",
439
+ * "unixVer": "-"
440
+ * },
441
+ * "baidu": {
442
+ * "hostVer": "-",
443
+ * "uniVer": "-",
444
+ * "unixVer": "-"
445
+ * },
446
+ * "toutiao": {
447
+ * "hostVer": "-",
448
+ * "uniVer": "-",
449
+ * "unixVer": "-"
450
+ * },
451
+ * "lark": {
452
+ * "hostVer": "-",
453
+ * "uniVer": "-",
454
+ * "unixVer": "-"
455
+ * },
456
+ * "qq": {
457
+ * "hostVer": "-",
458
+ * "uniVer": "-",
459
+ * "unixVer": "-"
460
+ * },
461
+ * "kuaishou": {
462
+ * "hostVer": "-",
463
+ * "uniVer": "-",
464
+ * "unixVer": "-"
465
+ * },
466
+ * "jd": {
467
+ * "hostVer": "-",
468
+ * "uniVer": "-",
469
+ * "unixVer": "-"
470
+ * }
471
+ * }
472
+ * }
473
+ */
474
+ export type WorkerEnv = {
475
+ /**
476
+ * 文件系统中的用户目录路径 (本地路径)
477
+ *
478
+ * @uniPlatform {
479
+ * "mp": {
480
+ * "weixin": {
481
+ * "hostVer": "√",
482
+ * "uniVer": "√",
483
+ * "unixVer": "4.41"
484
+ * },
485
+ * "alipay": {
486
+ * "hostVer": "-",
487
+ * "uniVer": "-",
488
+ * "unixVer": "-"
489
+ * },
490
+ * "baidu": {
491
+ * "hostVer": "-",
492
+ * "uniVer": "-",
493
+ * "unixVer": "-"
494
+ * },
495
+ * "toutiao": {
496
+ * "hostVer": "-",
497
+ * "uniVer": "-",
498
+ * "unixVer": "-"
499
+ * },
500
+ * "lark": {
501
+ * "hostVer": "-",
502
+ * "uniVer": "-",
503
+ * "unixVer": "-"
504
+ * },
505
+ * "qq": {
506
+ * "hostVer": "-",
507
+ * "uniVer": "-",
508
+ * "unixVer": "-"
509
+ * },
510
+ * "kuaishou": {
511
+ * "hostVer": "-",
512
+ * "uniVer": "-",
513
+ * "unixVer": "-"
514
+ * },
515
+ * "jd": {
516
+ * "hostVer": "-",
517
+ * "uniVer": "-",
518
+ * "unixVer": "-"
519
+ * }
520
+ * }
521
+ * }
522
+ */
523
+ USER_DATA_PATH?: string | null
524
+ };