ms-types 0.4.23 → 0.4.26
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.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"vitepress": "^1.6.4",
|
|
20
|
-
"vitepress-theme-teek": "^1.5.
|
|
21
|
-
"wrangler": "^4.
|
|
20
|
+
"vitepress-theme-teek": "^1.5.5",
|
|
21
|
+
"wrangler": "^4.71.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/types/hid.d.ts
CHANGED
|
@@ -237,6 +237,14 @@ declare namespace hid {
|
|
|
237
237
|
*/
|
|
238
238
|
function sendKey(key: Array<number | string>): boolean;
|
|
239
239
|
|
|
240
|
+
/**
|
|
241
|
+
* 按下按钮
|
|
242
|
+
* @param button 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键
|
|
243
|
+
* @returns 按下按钮是否成功
|
|
244
|
+
* @example action.pressButton("home")
|
|
245
|
+
*/
|
|
246
|
+
function pressButton(button: "home" | "volumeup" | "volumedown"): boolean;
|
|
247
|
+
|
|
240
248
|
/**
|
|
241
249
|
* 复制文本(Command+C)
|
|
242
250
|
* @returns 操作是否成功
|
|
@@ -241,6 +241,14 @@ declare namespace $HID {
|
|
|
241
241
|
*/
|
|
242
242
|
function 发送组合按键(按键数组: 数组<数字 | 字符串>): 布尔值;
|
|
243
243
|
|
|
244
|
+
/**
|
|
245
|
+
* 按下按钮
|
|
246
|
+
* @param 按键 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键
|
|
247
|
+
* @returns 按下按钮是否成功
|
|
248
|
+
* @example $动作.按键("home")
|
|
249
|
+
*/
|
|
250
|
+
function 按键(按键: "home" | "volumeup" | "volumedown"): 布尔值;
|
|
251
|
+
|
|
244
252
|
/**
|
|
245
253
|
* 复制文本(Command+C)
|
|
246
254
|
* @returns 操作是否成功
|