ms-types 0.0.47 → 0.0.48

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.0.47",
3
+ "version": "0.0.48",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/global.d.ts CHANGED
@@ -101,11 +101,12 @@ declare function restartScript(delay: number): void;
101
101
  declare function sleep(ms: number): void;
102
102
  /**
103
103
  * 退出应用
104
+ * @param exitAll 是否退出所有线程 true 退出所有 false 退出当前线程,不传默认 false
104
105
  * @description 退出应用会终止所有线程的执行
105
106
  * @example
106
107
  * exit();
107
108
  */
108
- declare function exit(): void;
109
+ declare function exit(exitAll?: boolean): void;
109
110
  /**
110
111
  * 获取当前时间戳
111
112
  * @returns 时间戳