ms-types 0.1.14 → 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.14",
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 停止回调
@@ -215,7 +215,7 @@ declare namespace $动作 {
215
215
  * 快速创建单点点击
216
216
  * @param 坐标x
217
217
  * @param 坐标y
218
- * @param 持续时间 点击持续时间,如果未定义则默认为 10ms
218
+ * @param 持续时间 点击持续时间,如果未定义则默认为 20ms
219
219
  * @returns 返回自身,支持链式调用
220
220
  * @example 动作构建器.单指点击(100, 100, 50).执行()
221
221
  */