ms-types 0.8.0 → 0.8.2

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.8.0",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/action.d.ts CHANGED
@@ -159,6 +159,17 @@ declare namespace action {
159
159
  * @example action.input("123456")
160
160
  */
161
161
  function input(text: string): boolean;
162
+ /**
163
+ * 输入基础文本。
164
+ *
165
+ * 通过键盘按键事件输入基础文本,适合英文、数字和常见 ASCII 符号。
166
+ * 不使用剪贴板或系统输入法,需要输入中文时请使用 action.input。
167
+ *
168
+ * @param text 文本内容
169
+ * @returns 输入是否成功
170
+ * @example action.inputSimple("hello_123")
171
+ */
172
+ function inputSimple(text: string): boolean;
162
173
  /**
163
174
  * 删除文本
164
175
  * @param count 删除数量 默认为1
@@ -156,11 +156,22 @@ declare namespace $动作 {
156
156
  ): 布尔值;
157
157
  /**
158
158
  * 输入文本
159
- * @param text 文本内容
159
+ * @param 文本 文本内容
160
160
  * @returns 输入文本是否成功
161
161
  * @example $动作.输入文本("123456")
162
162
  */
163
163
  function 输入文本(文本: 字符串): 布尔值;
164
+ /**
165
+ * 输入基础文本。
166
+ *
167
+ * 通过键盘按键事件输入基础文本,适合英文、数字和常见 ASCII 符号。
168
+ * 不使用剪贴板或系统输入法,需要输入中文时请使用 $动作.输入文本。
169
+ *
170
+ * @param 文本 文本内容
171
+ * @returns 输入是否成功
172
+ * @example $动作.输入简易文本("hello_123")
173
+ */
174
+ function 输入简易文本(文本: 字符串): 布尔值;
164
175
  /**
165
176
  * 删除文本
166
177
  * @param 删除数量 默认为1