ms-types 0.7.4 → 0.7.6

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.4",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/hid.d.ts CHANGED
@@ -81,6 +81,16 @@ declare namespace hid {
81
81
  * @returns 设备 MAC 字符串
82
82
  */
83
83
  function getDeviceMac(): string;
84
+ /**
85
+ * 获取设备型号
86
+ * @returns 设备型号
87
+ */
88
+ function getDeviceModel(): string;
89
+ /**
90
+ * 获取设备版本
91
+ * @returns 设备版本
92
+ */
93
+ function getDeviceVersion(): string;
84
94
 
85
95
  /**
86
96
  * 复位坐标到左上角 只有相对鼠标需要
package/types/system.d.ts CHANGED
@@ -78,6 +78,16 @@ declare namespace system {
78
78
  * }
79
79
  */
80
80
  function getInstalledAppList(): InstalledAppInfo[];
81
+ /**
82
+ * 打开 App 切换器
83
+ * @returns 是否打开成功
84
+ * @example
85
+ * const opened = system.recent()
86
+ * if (opened) {
87
+ * logi("打开成功")
88
+ * }
89
+ */
90
+ function recent(): boolean;
81
91
  /**
82
92
  * 获取系统是否锁屏
83
93
  * @returns 是否锁屏
@@ -83,6 +83,16 @@ declare namespace $HID {
83
83
  * @returns 设备 MAC 字符串
84
84
  */
85
85
  function 获取设备Mac(): 字符串;
86
+ /**
87
+ * 获取设备型号
88
+ * @returns 设备型号
89
+ */
90
+ function 获取设备型号(): 字符串;
91
+ /**
92
+ * 获取设备版本
93
+ * @returns 设备版本
94
+ */
95
+ function 获取设备版本(): 字符串;
86
96
 
87
97
  /**
88
98
  * 复位坐标到左上角 只有相对鼠标需要
@@ -78,6 +78,16 @@ declare namespace $系统 {
78
78
  * }
79
79
  */
80
80
  function 获取安装的应用列表(): 安装应用信息[];
81
+ /**
82
+ * 打开 App 切换器
83
+ * @returns 是否打开成功
84
+ * @example
85
+ * const 是否打开成功 = $系统.最近应用()
86
+ * if (是否打开成功) {
87
+ * $打印信息日志("打开成功")
88
+ * }
89
+ */
90
+ function 最近应用(): 布尔值;
81
91
  /**
82
92
  * 获取系统是否锁屏
83
93
  * @returns 是否锁屏