@ray-js/api 0.3.22-beta-9b3c7173 → 0.3.24-beta-f16861cb
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.
- package/@types/BaseKit.d.ts +6 -4
- package/@types/MiniKit.d.ts +263 -32
- package/@types/TYKit.d.ts +82 -12
- package/lib/{BaseKit-2.3.5.android.js → BaseKit-2.3.11.android.js} +0 -0
- package/lib/{BaseKit-2.3.5.d.ts → BaseKit-2.3.11.d.ts} +0 -0
- package/lib/{BaseKit-2.3.5.ios.js → BaseKit-2.3.11.ios.js} +0 -0
- package/lib/{BaseKit-2.3.5.js → BaseKit-2.3.11.js} +0 -0
- package/lib/{BaseKit-2.3.5.tuya.js → BaseKit-2.3.11.tuya.js} +0 -0
- package/lib/{BaseKit-2.3.5.web.js → BaseKit-2.3.11.web.js} +0 -0
- package/lib/{BaseKit-2.3.5.wechat.js → BaseKit-2.3.11.wechat.js} +0 -0
- package/lib/DeviceKit-2.3.3.android.js +1 -1
- package/lib/DeviceKit-2.3.3.ios.js +1 -1
- package/lib/DeviceKit-2.3.3.js +405 -135
- package/lib/DeviceKit-2.3.3.tuya.js +405 -135
- package/lib/DeviceKit-2.3.3.web.js +405 -135
- package/lib/DeviceKit-2.3.3.wechat.js +405 -135
- package/lib/MiniKit-2.4.3.android.js +1 -0
- package/lib/{MiniKit-2.4.1.d.ts → MiniKit-2.4.3.d.ts} +4 -0
- package/lib/MiniKit-2.4.3.ios.js +1 -0
- package/lib/{MiniKit-2.4.1.wechat.js → MiniKit-2.4.3.js} +4 -0
- package/lib/{MiniKit-2.4.1.js → MiniKit-2.4.3.tuya.js} +4 -0
- package/lib/{MiniKit-2.4.1.tuya.js → MiniKit-2.4.3.web.js} +4 -0
- package/lib/{MiniKit-2.4.1.web.js → MiniKit-2.4.3.wechat.js} +4 -0
- package/lib/TYKit-2.2.6.android.js +1 -0
- package/lib/{TYKit-2.2.0.d.ts → TYKit-2.2.6.d.ts} +0 -0
- package/lib/TYKit-2.2.6.ios.js +1 -0
- package/lib/{TYKit-2.2.0.wechat.js → TYKit-2.2.6.js} +6 -6
- package/lib/{TYKit-2.2.0.js → TYKit-2.2.6.tuya.js} +6 -6
- package/lib/{TYKit-2.2.0.tuya.js → TYKit-2.2.6.web.js} +6 -6
- package/lib/{TYKit-2.2.0.web.js → TYKit-2.2.6.wechat.js} +6 -6
- package/lib/all-kits.android.js +1 -1
- package/lib/all-kits.d.ts +4 -4
- package/lib/all-kits.ios.js +1 -1
- package/lib/all-kits.js +4 -4
- package/lib/all-kits.tuya.js +4 -4
- package/lib/all-kits.web.js +4 -4
- package/lib/all-kits.wechat.js +4 -4
- package/lib/utils.android.js +1 -1
- package/lib/utils.d.ts +6 -3
- package/lib/utils.ios.js +1 -1
- package/lib/utils.js +15 -10
- package/lib/utils.tuya.js +12 -7
- package/lib/utils.web.js +12 -7
- package/lib/utils.wechat.js +11 -7
- package/package.json +11 -10
- package/lib/MiniKit-2.4.1.android.js +0 -1
- package/lib/MiniKit-2.4.1.ios.js +0 -1
- package/lib/TYKit-2.2.0.android.js +0 -1
- package/lib/TYKit-2.2.0.ios.js +0 -1
package/@types/BaseKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* BaseKit
|
3
3
|
*
|
4
|
-
* @version 2.3.
|
4
|
+
* @version 2.3.11
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -768,7 +768,9 @@ declare namespace ty {
|
|
768
768
|
/**
|
769
769
|
* 从本地缓存中异步获取指定 key 的内容
|
770
770
|
*/
|
771
|
-
export function getStorageSync(
|
771
|
+
export function getStorageSync(
|
772
|
+
storageKeyBean?: StorageKeyBean
|
773
|
+
): {
|
772
774
|
/** key对应的内容 */
|
773
775
|
data?: string
|
774
776
|
}
|
@@ -1518,7 +1520,7 @@ declare namespace ty {
|
|
1518
1520
|
format?: string
|
1519
1521
|
/** 指定帧大小,单位 KB。传入 frameSize 后,每录制指定帧大小的内容后,会回调录制的文件内容,不指定则不会回调。暂仅支持 mp3、pcm 格式。 */
|
1520
1522
|
frameSize: number
|
1521
|
-
/**
|
1523
|
+
/** 指定录音的音频输入源 */
|
1522
1524
|
audioSource?: string
|
1523
1525
|
/** 录音上下文 */
|
1524
1526
|
contextId: string
|
@@ -1941,7 +1943,7 @@ declare namespace ty {
|
|
1941
1943
|
format?: string
|
1942
1944
|
/** 指定帧大小,单位 KB。传入 frameSize 后,每录制指定帧大小的内容后,会回调录制的文件内容,不指定则不会回调。暂仅支持 mp3、pcm 格式。 */
|
1943
1945
|
frameSize: number
|
1944
|
-
/**
|
1946
|
+
/** 指定录音的音频输入源 */
|
1945
1947
|
audioSource?: string
|
1946
1948
|
complete?: () => void
|
1947
1949
|
success?: (params: {
|
package/@types/MiniKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* MiniKit
|
3
3
|
*
|
4
|
-
* @version 2.4.
|
4
|
+
* @version 2.4.3
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -10,9 +10,18 @@ declare namespace ty {
|
|
10
10
|
export function nativeDisabled(params: {
|
11
11
|
/** 禁用异层渲染手势分发 */
|
12
12
|
nativeDisabled: boolean
|
13
|
+
/** 需要禁止或启用手势分发的页面id */
|
14
|
+
pageId: string
|
13
15
|
complete?: () => void
|
14
16
|
success?: (params: string) => void
|
15
|
-
fail?: (params: {
|
17
|
+
fail?: (params: {
|
18
|
+
errorMsg: string
|
19
|
+
errorCode: string | number
|
20
|
+
innerError: {
|
21
|
+
errorCode: string | number
|
22
|
+
errorMsg: string
|
23
|
+
}
|
24
|
+
}) => void
|
16
25
|
}): void
|
17
26
|
|
18
27
|
/**
|
@@ -31,7 +40,14 @@ declare namespace ty {
|
|
31
40
|
params: Record<string, string>
|
32
41
|
complete?: () => void
|
33
42
|
success?: (params: {}) => void
|
34
|
-
fail?: (params: {
|
43
|
+
fail?: (params: {
|
44
|
+
errorMsg: string
|
45
|
+
errorCode: string | number
|
46
|
+
innerError: {
|
47
|
+
errorCode: string | number
|
48
|
+
errorMsg: string
|
49
|
+
}
|
50
|
+
}) => void
|
35
51
|
}): void
|
36
52
|
|
37
53
|
/**
|
@@ -149,16 +165,15 @@ declare namespace ty {
|
|
149
165
|
/** method 请求方法 */
|
150
166
|
method?: HighwayMethod
|
151
167
|
complete?: () => void
|
152
|
-
success?: (
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
168
|
+
success?: (success?: Record<string, any>) => void
|
169
|
+
fail?: (params: {
|
170
|
+
errorMsg: string
|
171
|
+
errorCode: string | number
|
172
|
+
innerError: {
|
173
|
+
errorCode: string | number
|
174
|
+
errorMsg: string
|
175
|
+
}
|
160
176
|
}) => void
|
161
|
-
fail?: (params: {}) => void
|
162
177
|
}): void
|
163
178
|
|
164
179
|
/**
|
@@ -169,7 +184,14 @@ declare namespace ty {
|
|
169
184
|
extraData?: Record<string, any>
|
170
185
|
complete?: () => void
|
171
186
|
success?: (params: null) => void
|
172
|
-
fail?: (params: {
|
187
|
+
fail?: (params: {
|
188
|
+
errorMsg: string
|
189
|
+
errorCode: string | number
|
190
|
+
innerError: {
|
191
|
+
errorCode: string | number
|
192
|
+
errorMsg: string
|
193
|
+
}
|
194
|
+
}) => void
|
173
195
|
}): void
|
174
196
|
|
175
197
|
/**
|
@@ -178,7 +200,14 @@ declare namespace ty {
|
|
178
200
|
export function exitMiniProgram(params?: {
|
179
201
|
complete?: () => void
|
180
202
|
success?: (params: null) => void
|
181
|
-
fail?: (params: {
|
203
|
+
fail?: (params: {
|
204
|
+
errorMsg: string
|
205
|
+
errorCode: string | number
|
206
|
+
innerError: {
|
207
|
+
errorCode: string | number
|
208
|
+
errorMsg: string
|
209
|
+
}
|
210
|
+
}) => void
|
182
211
|
}): void
|
183
212
|
|
184
213
|
/**
|
@@ -196,7 +225,14 @@ declare namespace ty {
|
|
196
225
|
/** API 类别: default 默认类别; embedded 内嵌,通过打开半屏小程序能力打开的小程序 */
|
197
226
|
apiCategory?: string
|
198
227
|
}) => void
|
199
|
-
fail?: (params: {
|
228
|
+
fail?: (params: {
|
229
|
+
errorMsg: string
|
230
|
+
errorCode: string | number
|
231
|
+
innerError: {
|
232
|
+
errorCode: string | number
|
233
|
+
errorMsg: string
|
234
|
+
}
|
235
|
+
}) => void
|
200
236
|
}): void
|
201
237
|
|
202
238
|
/**
|
@@ -228,7 +264,14 @@ declare namespace ty {
|
|
228
264
|
/** API 类别: default 默认类别; embedded 内嵌,通过打开半屏小程序能力打开的小程序 */
|
229
265
|
apiCategory?: string
|
230
266
|
}) => void
|
231
|
-
fail?: (params: {
|
267
|
+
fail?: (params: {
|
268
|
+
errorMsg: string
|
269
|
+
errorCode: string | number
|
270
|
+
innerError: {
|
271
|
+
errorCode: string | number
|
272
|
+
errorMsg: string
|
273
|
+
}
|
274
|
+
}) => void
|
232
275
|
}): void
|
233
276
|
|
234
277
|
/**
|
@@ -253,7 +296,14 @@ declare namespace ty {
|
|
253
296
|
title: string
|
254
297
|
complete?: () => void
|
255
298
|
success?: (params: null) => void
|
256
|
-
fail?: (params: {
|
299
|
+
fail?: (params: {
|
300
|
+
errorMsg: string
|
301
|
+
errorCode: string | number
|
302
|
+
innerError: {
|
303
|
+
errorCode: string | number
|
304
|
+
errorMsg: string
|
305
|
+
}
|
306
|
+
}) => void
|
257
307
|
}): void
|
258
308
|
|
259
309
|
/**
|
@@ -280,7 +330,14 @@ declare namespace ty {
|
|
280
330
|
/** 左边界坐标,单位:px */
|
281
331
|
left: number
|
282
332
|
}) => void
|
283
|
-
fail?: (params: {
|
333
|
+
fail?: (params: {
|
334
|
+
errorMsg: string
|
335
|
+
errorCode: string | number
|
336
|
+
innerError: {
|
337
|
+
errorCode: string | number
|
338
|
+
errorMsg: string
|
339
|
+
}
|
340
|
+
}) => void
|
284
341
|
}): void
|
285
342
|
|
286
343
|
/**
|
@@ -311,7 +368,14 @@ declare namespace ty {
|
|
311
368
|
miniAppVersion?: string
|
312
369
|
complete?: () => void
|
313
370
|
success?: (params: null) => void
|
314
|
-
fail?: (params: {
|
371
|
+
fail?: (params: {
|
372
|
+
errorMsg: string
|
373
|
+
errorCode: string | number
|
374
|
+
innerError: {
|
375
|
+
errorCode: string | number
|
376
|
+
errorMsg: string
|
377
|
+
}
|
378
|
+
}) => void
|
315
379
|
}): void
|
316
380
|
|
317
381
|
/**
|
@@ -325,18 +389,32 @@ declare namespace ty {
|
|
325
389
|
/** 用户登录凭证(有效期五分钟) */
|
326
390
|
code: string
|
327
391
|
}) => void
|
328
|
-
fail?: (params: {
|
392
|
+
fail?: (params: {
|
393
|
+
errorMsg: string
|
394
|
+
errorCode: string | number
|
395
|
+
innerError: {
|
396
|
+
errorCode: string | number
|
397
|
+
errorMsg: string
|
398
|
+
}
|
399
|
+
}) => void
|
329
400
|
}): void
|
330
401
|
|
331
402
|
/**
|
332
|
-
* 屏幕旋转设置,auto / portrait / landscape
|
403
|
+
* 屏幕旋转设置,auto / portrait / landscape。pad模式下不支持屏幕旋转
|
333
404
|
*/
|
334
405
|
export function setPageOrientation(params: {
|
335
406
|
/** 屏幕旋转设置, auto(暂不支持) / portrait / landscape */
|
336
407
|
pageOrientation: string
|
337
408
|
complete?: () => void
|
338
409
|
success?: (params: null) => void
|
339
|
-
fail?: (params: {
|
410
|
+
fail?: (params: {
|
411
|
+
errorMsg: string
|
412
|
+
errorCode: string | number
|
413
|
+
innerError: {
|
414
|
+
errorCode: string | number
|
415
|
+
errorMsg: string
|
416
|
+
}
|
417
|
+
}) => void
|
340
418
|
}): void
|
341
419
|
|
342
420
|
/**
|
@@ -345,7 +423,14 @@ declare namespace ty {
|
|
345
423
|
export function showNavigationBarLoading(params?: {
|
346
424
|
complete?: () => void
|
347
425
|
success?: (params: null) => void
|
348
|
-
fail?: (params: {
|
426
|
+
fail?: (params: {
|
427
|
+
errorMsg: string
|
428
|
+
errorCode: string | number
|
429
|
+
innerError: {
|
430
|
+
errorCode: string | number
|
431
|
+
errorMsg: string
|
432
|
+
}
|
433
|
+
}) => void
|
349
434
|
}): void
|
350
435
|
|
351
436
|
/**
|
@@ -356,7 +441,14 @@ declare namespace ty {
|
|
356
441
|
title: string
|
357
442
|
complete?: () => void
|
358
443
|
success?: (params: null) => void
|
359
|
-
fail?: (params: {
|
444
|
+
fail?: (params: {
|
445
|
+
errorMsg: string
|
446
|
+
errorCode: string | number
|
447
|
+
innerError: {
|
448
|
+
errorCode: string | number
|
449
|
+
errorMsg: string
|
450
|
+
}
|
451
|
+
}) => void
|
360
452
|
}): void
|
361
453
|
|
362
454
|
/**
|
@@ -371,7 +463,14 @@ declare namespace ty {
|
|
371
463
|
animation: NavigationBarColorAnimationInfo
|
372
464
|
complete?: () => void
|
373
465
|
success?: (params: null) => void
|
374
|
-
fail?: (params: {
|
466
|
+
fail?: (params: {
|
467
|
+
errorMsg: string
|
468
|
+
errorCode: string | number
|
469
|
+
innerError: {
|
470
|
+
errorCode: string | number
|
471
|
+
errorMsg: string
|
472
|
+
}
|
473
|
+
}) => void
|
375
474
|
}): void
|
376
475
|
|
377
476
|
/**
|
@@ -380,7 +479,14 @@ declare namespace ty {
|
|
380
479
|
export function hideNavigationBarLoading(params?: {
|
381
480
|
complete?: () => void
|
382
481
|
success?: (params: null) => void
|
383
|
-
fail?: (params: {
|
482
|
+
fail?: (params: {
|
483
|
+
errorMsg: string
|
484
|
+
errorCode: string | number
|
485
|
+
innerError: {
|
486
|
+
errorCode: string | number
|
487
|
+
errorMsg: string
|
488
|
+
}
|
489
|
+
}) => void
|
384
490
|
}): void
|
385
491
|
|
386
492
|
/**
|
@@ -389,7 +495,14 @@ declare namespace ty {
|
|
389
495
|
export function hideHomeButton(params?: {
|
390
496
|
complete?: () => void
|
391
497
|
success?: (params: null) => void
|
392
|
-
fail?: (params: {
|
498
|
+
fail?: (params: {
|
499
|
+
errorMsg: string
|
500
|
+
errorCode: string | number
|
501
|
+
innerError: {
|
502
|
+
errorCode: string | number
|
503
|
+
errorMsg: string
|
504
|
+
}
|
505
|
+
}) => void
|
393
506
|
}): void
|
394
507
|
|
395
508
|
/**
|
@@ -402,7 +515,14 @@ declare namespace ty {
|
|
402
515
|
delta?: number
|
403
516
|
complete?: () => void
|
404
517
|
success?: (params: null) => void
|
405
|
-
fail?: (params: {
|
518
|
+
fail?: (params: {
|
519
|
+
errorMsg: string
|
520
|
+
errorCode: string | number
|
521
|
+
innerError: {
|
522
|
+
errorCode: string | number
|
523
|
+
errorMsg: string
|
524
|
+
}
|
525
|
+
}) => void
|
406
526
|
}): void
|
407
527
|
|
408
528
|
/**
|
@@ -415,7 +535,14 @@ declare namespace ty {
|
|
415
535
|
delta?: number
|
416
536
|
complete?: () => void
|
417
537
|
success?: (params: null) => void
|
418
|
-
fail?: (params: {
|
538
|
+
fail?: (params: {
|
539
|
+
errorMsg: string
|
540
|
+
errorCode: string | number
|
541
|
+
innerError: {
|
542
|
+
errorCode: string | number
|
543
|
+
errorMsg: string
|
544
|
+
}
|
545
|
+
}) => void
|
419
546
|
}): void
|
420
547
|
|
421
548
|
/**
|
@@ -428,7 +555,14 @@ declare namespace ty {
|
|
428
555
|
delta?: number
|
429
556
|
complete?: () => void
|
430
557
|
success?: (params: null) => void
|
431
|
-
fail?: (params: {
|
558
|
+
fail?: (params: {
|
559
|
+
errorMsg: string
|
560
|
+
errorCode: string | number
|
561
|
+
innerError: {
|
562
|
+
errorCode: string | number
|
563
|
+
errorMsg: string
|
564
|
+
}
|
565
|
+
}) => void
|
432
566
|
}): void
|
433
567
|
|
434
568
|
/**
|
@@ -441,7 +575,14 @@ declare namespace ty {
|
|
441
575
|
delta?: number
|
442
576
|
complete?: () => void
|
443
577
|
success?: (params: null) => void
|
444
|
-
fail?: (params: {
|
578
|
+
fail?: (params: {
|
579
|
+
errorMsg: string
|
580
|
+
errorCode: string | number
|
581
|
+
innerError: {
|
582
|
+
errorCode: string | number
|
583
|
+
errorMsg: string
|
584
|
+
}
|
585
|
+
}) => void
|
445
586
|
}): void
|
446
587
|
|
447
588
|
/**
|
@@ -454,9 +595,82 @@ declare namespace ty {
|
|
454
595
|
delta?: number
|
455
596
|
complete?: () => void
|
456
597
|
success?: (params: null) => void
|
457
|
-
fail?: (params: {
|
598
|
+
fail?: (params: {
|
599
|
+
errorMsg: string
|
600
|
+
errorCode: string | number
|
601
|
+
innerError: {
|
602
|
+
errorCode: string | number
|
603
|
+
errorMsg: string
|
604
|
+
}
|
605
|
+
}) => void
|
606
|
+
}): void
|
607
|
+
|
608
|
+
/**
|
609
|
+
* 判断自定义API是否可用
|
610
|
+
*/
|
611
|
+
export function extApiCanIUse(params: {
|
612
|
+
/** api名称 */
|
613
|
+
api: string
|
614
|
+
/** api参数 */
|
615
|
+
params?: Record<string, any>
|
616
|
+
complete?: () => void
|
617
|
+
success?: (params: {
|
618
|
+
/** 当前版本是否可用 */
|
619
|
+
result: boolean
|
620
|
+
}) => void
|
621
|
+
failure?: (params: {
|
622
|
+
errorMsg: string
|
623
|
+
errorCode: string | number
|
624
|
+
innerError: {
|
625
|
+
errorCode: string | number
|
626
|
+
errorMsg: string
|
627
|
+
}
|
628
|
+
}) => void
|
458
629
|
}): void
|
459
630
|
|
631
|
+
/**
|
632
|
+
* 判断自定义API是否可用
|
633
|
+
*/
|
634
|
+
export function extApiCanIUseSync(
|
635
|
+
extApiBean?: ExtApiBean
|
636
|
+
): {
|
637
|
+
/** 当前版本是否可用 */
|
638
|
+
result: boolean
|
639
|
+
}
|
640
|
+
|
641
|
+
/**
|
642
|
+
* 调用自定义API
|
643
|
+
*/
|
644
|
+
export function extApiInvoke(params: {
|
645
|
+
/** api名称 */
|
646
|
+
api: string
|
647
|
+
/** api参数 */
|
648
|
+
params?: Record<string, any>
|
649
|
+
complete?: () => void
|
650
|
+
success?: (params: {
|
651
|
+
/** extApi返回数据 */
|
652
|
+
data?: {}
|
653
|
+
}) => void
|
654
|
+
fail?: (params: {
|
655
|
+
errorMsg: string
|
656
|
+
errorCode: string | number
|
657
|
+
innerError: {
|
658
|
+
errorCode: string | number
|
659
|
+
errorMsg: string
|
660
|
+
}
|
661
|
+
}) => void
|
662
|
+
}): void
|
663
|
+
|
664
|
+
/**
|
665
|
+
* 调用自定义API
|
666
|
+
*/
|
667
|
+
export function extApiInvokeSync(
|
668
|
+
extApiBean?: ExtApiBean
|
669
|
+
): {
|
670
|
+
/** extApi返回数据 */
|
671
|
+
data?: {}
|
672
|
+
}
|
673
|
+
|
460
674
|
/**
|
461
675
|
* 开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
|
462
676
|
*/
|
@@ -536,6 +750,13 @@ declare namespace ty {
|
|
536
750
|
timingFunc?: string
|
537
751
|
}
|
538
752
|
|
753
|
+
export type ExtApiBean = {
|
754
|
+
/** api名称 */
|
755
|
+
api: string
|
756
|
+
/** api参数 */
|
757
|
+
params?: Record<string, any>
|
758
|
+
}
|
759
|
+
|
539
760
|
export type NativeUploadData = {
|
540
761
|
/** 原生组件的EventName */
|
541
762
|
eventName: string
|
@@ -680,4 +901,14 @@ declare namespace ty {
|
|
680
901
|
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
681
902
|
delta?: number
|
682
903
|
}
|
904
|
+
|
905
|
+
export type SuccessResult = {
|
906
|
+
/** 当前版本是否可用 */
|
907
|
+
result: boolean
|
908
|
+
}
|
909
|
+
|
910
|
+
export type InvokeResult = {
|
911
|
+
/** extApi返回数据 */
|
912
|
+
data?: {}
|
913
|
+
}
|
683
914
|
}
|
package/@types/TYKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* TYKit
|
3
3
|
*
|
4
|
-
* @version 2.2.
|
4
|
+
* @version 2.2.6
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -41,7 +41,14 @@ declare namespace ty {
|
|
41
41
|
event: Record<string, {}>
|
42
42
|
complete?: () => void
|
43
43
|
success?: (params: null) => void
|
44
|
-
fail?: (params: {
|
44
|
+
fail?: (params: {
|
45
|
+
errorMsg: string
|
46
|
+
errorCode: string | number
|
47
|
+
innerError: {
|
48
|
+
errorCode: string | number
|
49
|
+
errorMsg: string
|
50
|
+
}
|
51
|
+
}) => void
|
45
52
|
}): void
|
46
53
|
|
47
54
|
/**
|
@@ -59,7 +66,14 @@ declare namespace ty {
|
|
59
66
|
infos: Record<string, {}>
|
60
67
|
complete?: () => void
|
61
68
|
success?: (params: null) => void
|
62
|
-
fail?: (params: {
|
69
|
+
fail?: (params: {
|
70
|
+
errorMsg: string
|
71
|
+
errorCode: string | number
|
72
|
+
innerError: {
|
73
|
+
errorCode: string | number
|
74
|
+
errorMsg: string
|
75
|
+
}
|
76
|
+
}) => void
|
63
77
|
}): void
|
64
78
|
|
65
79
|
/**
|
@@ -77,7 +91,14 @@ declare namespace ty {
|
|
77
91
|
infos: Record<string, {}>
|
78
92
|
complete?: () => void
|
79
93
|
success?: (params: null) => void
|
80
|
-
fail?: (params: {
|
94
|
+
fail?: (params: {
|
95
|
+
errorMsg: string
|
96
|
+
errorCode: string | number
|
97
|
+
innerError: {
|
98
|
+
errorCode: string | number
|
99
|
+
errorMsg: string
|
100
|
+
}
|
101
|
+
}) => void
|
81
102
|
}): void
|
82
103
|
|
83
104
|
/**
|
@@ -95,7 +116,14 @@ declare namespace ty {
|
|
95
116
|
infos: Record<string, {}>
|
96
117
|
complete?: () => void
|
97
118
|
success?: (params: null) => void
|
98
|
-
fail?: (params: {
|
119
|
+
fail?: (params: {
|
120
|
+
errorMsg: string
|
121
|
+
errorCode: string | number
|
122
|
+
innerError: {
|
123
|
+
errorCode: string | number
|
124
|
+
errorMsg: string
|
125
|
+
}
|
126
|
+
}) => void
|
99
127
|
}): void
|
100
128
|
|
101
129
|
/**
|
@@ -186,7 +214,14 @@ declare namespace ty {
|
|
186
214
|
*/
|
187
215
|
nameMap: string
|
188
216
|
}) => void
|
189
|
-
fail?: (params: {
|
217
|
+
fail?: (params: {
|
218
|
+
errorMsg: string
|
219
|
+
errorCode: string | number
|
220
|
+
innerError: {
|
221
|
+
errorCode: string | number
|
222
|
+
errorMsg: string
|
223
|
+
}
|
224
|
+
}) => void
|
190
225
|
}): void
|
191
226
|
|
192
227
|
/**
|
@@ -227,7 +262,14 @@ declare namespace ty {
|
|
227
262
|
/** 手机当前地区语言 */
|
228
263
|
langKey: string
|
229
264
|
}) => void
|
230
|
-
fail?: (params: {
|
265
|
+
fail?: (params: {
|
266
|
+
errorMsg: string
|
267
|
+
errorCode: string | number
|
268
|
+
innerError: {
|
269
|
+
errorCode: string | number
|
270
|
+
errorMsg: string
|
271
|
+
}
|
272
|
+
}) => void
|
231
273
|
}): void
|
232
274
|
|
233
275
|
/**
|
@@ -239,7 +281,14 @@ declare namespace ty {
|
|
239
281
|
/** 多语言 */
|
240
282
|
langContent: {}
|
241
283
|
}) => void
|
242
|
-
fail?: (params: {
|
284
|
+
fail?: (params: {
|
285
|
+
errorMsg: string
|
286
|
+
errorCode: string | number
|
287
|
+
innerError: {
|
288
|
+
errorCode: string | number
|
289
|
+
errorMsg: string
|
290
|
+
}
|
291
|
+
}) => void
|
243
292
|
}): void
|
244
293
|
|
245
294
|
/**
|
@@ -609,7 +658,14 @@ declare namespace ty {
|
|
609
658
|
*/
|
610
659
|
path: string
|
611
660
|
}) => void
|
612
|
-
fail?: (params: {
|
661
|
+
fail?: (params: {
|
662
|
+
errorMsg: string
|
663
|
+
errorCode: string | number
|
664
|
+
innerError: {
|
665
|
+
errorCode: string | number
|
666
|
+
errorMsg: string
|
667
|
+
}
|
668
|
+
}) => void
|
613
669
|
}): void
|
614
670
|
|
615
671
|
/**
|
@@ -628,7 +684,14 @@ declare namespace ty {
|
|
628
684
|
orientation: number
|
629
685
|
complete?: () => void
|
630
686
|
success?: (params: null) => void
|
631
|
-
fail?: (params: {
|
687
|
+
fail?: (params: {
|
688
|
+
errorMsg: string
|
689
|
+
errorCode: string | number
|
690
|
+
innerError: {
|
691
|
+
errorCode: string | number
|
692
|
+
errorMsg: string
|
693
|
+
}
|
694
|
+
}) => void
|
632
695
|
}): void
|
633
696
|
|
634
697
|
/**
|
@@ -648,7 +711,14 @@ declare namespace ty {
|
|
648
711
|
orientation: number
|
649
712
|
complete?: () => void
|
650
713
|
success?: (params: null) => void
|
651
|
-
fail?: (params: {
|
714
|
+
fail?: (params: {
|
715
|
+
errorMsg: string
|
716
|
+
errorCode: string | number
|
717
|
+
innerError: {
|
718
|
+
errorCode: string | number
|
719
|
+
errorMsg: string
|
720
|
+
}
|
721
|
+
}) => void
|
652
722
|
}): void
|
653
723
|
|
654
724
|
/**
|
@@ -742,7 +812,7 @@ declare namespace ty {
|
|
742
812
|
bizClientId: string
|
743
813
|
/**
|
744
814
|
* 包类型
|
745
|
-
*
|
815
|
+
* RN RN类型
|
746
816
|
* SMART_MINIPG 小程序类型
|
747
817
|
*/
|
748
818
|
uiType?: string
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|