ms-types 0.7.5 → 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.5",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
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 是否锁屏
@@ -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 是否锁屏