ms-types 0.3.21 → 0.3.22

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/thread.d.ts CHANGED
@@ -29,11 +29,9 @@ declare namespace thread {
29
29
  * @param threadFunc 线程函数
30
30
  * @returns 线程对象
31
31
  * @example
32
- * thread.run(() => {
33
- * logi("hello world")
34
- * })
32
+ * thread.run("test_thread.js")
35
33
  */
36
- function run(threadFunc: () => void): Thread;
34
+ function run(threadJsFileName: string): Thread;
37
35
  /**
38
36
  * 停止所有线程
39
37
  * @returns 是否停止成功
@@ -32,11 +32,9 @@ declare namespace $线程 {
32
32
  * @param 回调函数
33
33
  * @returns 线程名称
34
34
  * @example
35
- * const 线程名称 = $线程.运行(() => {
36
- * $打印信息日志("hello world")
37
- * })
35
+ * $线程.运行("test_thread.js")
38
36
  */
39
- function 运行(线程函数: () => 无返回值): 线程;
37
+ function 运行(线程js文件名: 字符串): 线程;
40
38
  /**
41
39
  * 停止所有线程
42
40
  * @returns 是否停止成功