ms-types 0.0.47 → 0.0.49
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 +1 -1
- package/types/action.d.ts +16 -0
- package/types/global.d.ts +2 -1
package/package.json
CHANGED
package/types/action.d.ts
CHANGED
|
@@ -138,6 +138,22 @@ declare namespace action {
|
|
|
138
138
|
endY: number,
|
|
139
139
|
duration?: number
|
|
140
140
|
): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* 执行组合操作
|
|
143
|
+
* @param actions 操作列表
|
|
144
|
+
* @returns 执行组合操作是否成功
|
|
145
|
+
* @example action.actions({
|
|
146
|
+
* "type": "pointer",
|
|
147
|
+
* "id": "pointer1",
|
|
148
|
+
* "parameters": { "pointerType": "touch" },
|
|
149
|
+
* "actions": [
|
|
150
|
+
* { "type": "pointerMove", "duration": 0, "x": x1, "y": y1 },
|
|
151
|
+
* { "type": "pointerDown", "button": 0 },
|
|
152
|
+
* { "type": "pointerUp", "button": 0 }
|
|
153
|
+
* ]
|
|
154
|
+
* })
|
|
155
|
+
*/
|
|
156
|
+
function actions(actions: Record<string, any>): boolean;
|
|
141
157
|
/**
|
|
142
158
|
* 输入文本
|
|
143
159
|
* @param text 文本内容
|
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 时间戳
|