@xylink/xy-rtc-sdk 3.9.11-private.6 → 3.9.11
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/README_DEV.MD +189 -0
- package/build.config.json +10 -0
- package/lib/action/index.d.ts +4 -0
- package/lib/interface/baseModule.type.d.ts +9 -0
- package/lib/main/client.d.ts +37 -0
- package/lib/main/feature/customMessage/index.d.ts +27 -0
- package/lib/main/feature/vep/index.d.ts +64 -0
- package/lib/main/feature/vep/index.type.d.ts +139 -0
- package/lib/main/media/index.d.ts +23 -0
- package/lib/main/media/index.type.d.ts +29 -0
- package/lib/main/roster/index.d.ts +50 -0
- package/lib/tools/promiseQueue.d.ts +51 -0
- package/lib/tools/queue.d.ts +13 -16
- package/lib/tools/utils.d.ts +2 -9
- package/lib/type/index.d.ts +1 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +7 -6
package/lib/tools/queue.d.ts
CHANGED
|
@@ -4,37 +4,34 @@
|
|
|
4
4
|
* Created at : 2023-04-19 09:46:28
|
|
5
5
|
* Last modified : 2023-04-25 16:54:44
|
|
6
6
|
*/
|
|
7
|
-
type
|
|
8
|
-
declare class Queue
|
|
9
|
-
private
|
|
7
|
+
type Fn = (...args: any[]) => any;
|
|
8
|
+
declare class Queue {
|
|
9
|
+
private isLock;
|
|
10
10
|
private taskCompletedCB;
|
|
11
11
|
private waitingQueue;
|
|
12
|
-
constructor();
|
|
12
|
+
constructor(isLock?: boolean);
|
|
13
13
|
/**
|
|
14
14
|
* 监听任务执行完成状态
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param { Fn } callback - 任务结束回调
|
|
17
17
|
*/
|
|
18
|
-
onTaskCompleted(callback:
|
|
18
|
+
onTaskCompleted(callback: Fn): void;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 添加任务
|
|
21
21
|
*
|
|
22
|
-
* @param {
|
|
23
|
-
* @returns { Promise<T> }
|
|
22
|
+
* @param { Fn } task - 任务函数
|
|
24
23
|
*/
|
|
25
|
-
addTask(task:
|
|
24
|
+
addTask(task: Fn): void;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* 执行任务队列
|
|
28
27
|
*
|
|
29
|
-
* @param {
|
|
30
|
-
* @param { Fn } resolve - Resolve函数
|
|
31
|
-
* @param { Fn } reject - Reject函数
|
|
28
|
+
* @param { Fn} task - 无值时,执行所有任务
|
|
32
29
|
*/
|
|
33
|
-
|
|
30
|
+
execute(task?: Fn): void;
|
|
34
31
|
/**
|
|
35
32
|
* 获取执行中的任务数量
|
|
36
33
|
*
|
|
37
|
-
* @returns { number }
|
|
34
|
+
* @returns { number } - 任务队列长度
|
|
38
35
|
*/
|
|
39
36
|
taskLength(): number;
|
|
40
37
|
/**
|
package/lib/tools/utils.d.ts
CHANGED
|
@@ -81,14 +81,7 @@ export declare const TYPEOF: {
|
|
|
81
81
|
/**
|
|
82
82
|
* JSON字符串转对象
|
|
83
83
|
*
|
|
84
|
-
* @param {
|
|
84
|
+
* @param { unknown } jsonString
|
|
85
85
|
* @returns { object}
|
|
86
86
|
*/
|
|
87
|
-
export declare const jsonParse: (jsonString:
|
|
88
|
-
/**
|
|
89
|
-
* 字符串转 JSON 字符串
|
|
90
|
-
*
|
|
91
|
-
* @param {string|object} value
|
|
92
|
-
* @returns {string}
|
|
93
|
-
*/
|
|
94
|
-
export declare const jsonStringify: (value: string | object) => string;
|
|
87
|
+
export declare const jsonParse: (jsonString: unknown) => any;
|
package/lib/type/index.d.ts
CHANGED