ms-types 0.9.18 → 0.9.19
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/package.json
CHANGED
package/types/global.d.ts
CHANGED
package/types/pip.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ declare namespace pip {
|
|
|
20
20
|
* @returns true代表已提交切换请求
|
|
21
21
|
*/
|
|
22
22
|
function switchToCustomMode(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 关闭悬浮窗
|
|
25
|
+
* @returns true代表已提交关闭请求
|
|
26
|
+
*/
|
|
27
|
+
function closeWindow(): boolean;
|
|
23
28
|
/**
|
|
24
29
|
* 设置日志模式或自定义模式的悬浮窗内容尺寸
|
|
25
30
|
* 日志模式和自定义模式会分别持久化尺寸;保活模式返回 false
|
package/types/thread.d.ts
CHANGED
|
@@ -27,11 +27,12 @@ declare namespace thread {
|
|
|
27
27
|
/**
|
|
28
28
|
* 异步执行线程代码
|
|
29
29
|
* @param threadJsFileName 线程js文件路径
|
|
30
|
+
* @param params 注入子线程全局变量 __threadParams__ 的启动参数,只能传 Object
|
|
30
31
|
* @returns 线程对象
|
|
31
32
|
* @example
|
|
32
|
-
* thread.run("test_thread.js")
|
|
33
|
+
* thread.run("test_thread.js", { taskId: 1 })
|
|
33
34
|
*/
|
|
34
|
-
function run(threadJsFileName: string): Thread;
|
|
35
|
+
function run(threadJsFileName: string, params?: Record<string, any>): Thread;
|
|
35
36
|
/**
|
|
36
37
|
* 停止所有线程
|
|
37
38
|
* @returns 是否停止成功
|
|
@@ -28,11 +28,12 @@ declare namespace $线程 {
|
|
|
28
28
|
/**
|
|
29
29
|
* 异步执行线程代码
|
|
30
30
|
* @param 线程js文件名 线程js文件路径
|
|
31
|
+
* @param 启动参数 注入子线程全局变量 $线程参数 的启动参数,只能传 Object
|
|
31
32
|
* @returns 线程对象
|
|
32
33
|
* @example
|
|
33
|
-
* $线程.运行("test_thread.js")
|
|
34
|
+
* $线程.运行("test_thread.js", { 任务编号: 1 })
|
|
34
35
|
*/
|
|
35
|
-
function 运行(线程js文件名:
|
|
36
|
+
function 运行(线程js文件名: 字符串, 启动参数?: 字典<任意类型>): 线程;
|
|
36
37
|
/**
|
|
37
38
|
* 停止所有线程
|
|
38
39
|
* @returns 是否停止成功
|