ms-types 0.0.39 → 0.0.40

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/action.d.ts +21 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/action.d.ts CHANGED
@@ -81,7 +81,7 @@ declare namespace action {
81
81
  * @param duration 持续时间 默认20ms
82
82
  * @param interval 双击间隔时间 默认20ms
83
83
  * @returns 随机双击是否成功
84
- * @example action.doubleClickRandom(100, 100, 200, 200, 20, 20)
84
+ * @example action.doubleClickRandom(100, 100, 200, 200, 20, 20)
85
85
  */
86
86
  function doubleClickRandom(
87
87
  x1: number,
@@ -138,6 +138,26 @@ declare namespace action {
138
138
  endY: number,
139
139
  duration?: number
140
140
  ): boolean;
141
+ /**
142
+ * 输入文本
143
+ * @param text 文本内容
144
+ * @returns 输入文本是否成功
145
+ * @example action.input("123456")
146
+ */
147
+ function input(text: string): boolean;
148
+ /**
149
+ * 删除文本
150
+ * @param count 删除数量 默认为1
151
+ * @returns 删除文本是否成功
152
+ * @example action.backspace(1)
153
+ */
154
+ function backspace(count?: number): boolean;
155
+ /**
156
+ * 调用回车
157
+ * @returns 调用回车是否成功
158
+ * @example action.enter()
159
+ */
160
+ function enter(): boolean;
141
161
  /**
142
162
  * 返回首页
143
163
  * @returns 返回首页是否成功