ms-types 0.7.1 → 0.7.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.7.1",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/hid.d.ts CHANGED
@@ -88,6 +88,12 @@ declare namespace hid {
88
88
  */
89
89
  function resetPosition(): boolean;
90
90
 
91
+ /**
92
+ * 重启当前连接的 HID 设备
93
+ * @returns 操作是否成功
94
+ */
95
+ function restartDevice(): boolean;
96
+
91
97
  /**
92
98
  * 设置动作抖动值
93
99
  * @param value 抖动值
@@ -90,6 +90,12 @@ declare namespace $HID {
90
90
  */
91
91
  function 复位坐标(): 布尔值;
92
92
 
93
+ /**
94
+ * 重启当前连接的 HID 设备
95
+ * @returns 操作是否成功
96
+ */
97
+ function 重启设备(): 布尔值;
98
+
93
99
  /**
94
100
  * 设置动作抖动值
95
101
  * @param 抖动值