ms-types 0.1.15 → 0.1.16

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.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/global.d.ts CHANGED
@@ -58,6 +58,15 @@ declare const __package__: {
58
58
  [key: string]: any;
59
59
  };
60
60
 
61
+ /**
62
+ * 设置异步模式 设置为异步模式后,方法所有同步API方法都会返回 Promise 异步执行
63
+ * @param asyncMode 是否异步模式
64
+ * @description 设置是否开启异步模式,默认 false
65
+ * @example
66
+ * setAsyncMode(true);
67
+ */
68
+ declare function setAsyncMode(...args: any[]): void;
69
+
61
70
  /**
62
71
  * 设置停止回调(仅主线程调用)
63
72
  * @param callback 停止回调