ms-types 0.8.0 → 0.8.1

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.1",
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
+ * 不使用剪切板或 IME,而是把文本字符数组一次性传给 Action 模块的 sendKey。
166
+ * 仅支持可映射为 USB HID Keyboard/Keypad usage 的 ASCII 字符,不支持中文。
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
+ * 不使用剪切板或 IME,而是把文本字符数组一次性传给动作模块的 发送按键。
168
+ * 仅支持可映射为 USB HID Keyboard/Keypad usage 的 ASCII 字符,不支持中文。
169
+ *
170
+ * @param 文本 文本内容
171
+ * @returns 输入是否成功
172
+ * @example $动作.输入简易文本("hello_123")
173
+ */
174
+ function 输入简易文本(文本: 字符串): 布尔值;
164
175
  /**
165
176
  * 删除文本
166
177
  * @param 删除数量 默认为1