ms-types 0.5.4 → 0.5.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.5.4",
3
+ "version": "0.5.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -18,6 +18,6 @@
18
18
  "devDependencies": {
19
19
  "vitepress": "^1.6.4",
20
20
  "vitepress-theme-teek": "^1.5.5",
21
- "wrangler": "^4.71.0"
21
+ "wrangler": "^4.79.0"
22
22
  }
23
23
  }
package/types/global.d.ts CHANGED
@@ -2,6 +2,10 @@
2
2
  * 是否内置内置Agent
3
3
  */
4
4
  declare const __isSupportBuiltAgent__: boolean;
5
+ /**
6
+ * 运行模式
7
+ */
8
+ declare const __runMode__: "agent" | "hid";
5
9
  /**
6
10
  * 是否是调试模式
7
11
  */
package/types/media.d.ts CHANGED
@@ -51,6 +51,17 @@ declare namespace media {
51
51
  */
52
52
  function deleteAllVideos(): boolean;
53
53
 
54
+ /**
55
+ * 清空相册中的截图
56
+ * @returns 是否删除成功
57
+ * @example
58
+ * const deleted = media.deleteAllScreenshots()
59
+ * if (deleted) {
60
+ * logi("删除成功")
61
+ * }
62
+ */
63
+ function deleteAllScreenshots(): boolean;
64
+
54
65
  /**
55
66
  * 播放MP3音乐(异步播放)
56
67
  * @param path 文件路径
@@ -11,6 +11,10 @@ declare type 无返回值 = void;
11
11
  * 是否内置内置Agent
12
12
  */
13
13
  declare const $是否内置Agent: 布尔值;
14
+ /**
15
+ * 运行模式
16
+ */
17
+ declare const $运行模式: "agent" | "hid";
14
18
  /**
15
19
  * 是否是调试模式
16
20
  */
@@ -52,6 +52,17 @@ declare namespace $媒体 {
52
52
  */
53
53
  function 清空相册中的视频(): 布尔值;
54
54
 
55
+ /**
56
+ * 清空相册中的截图
57
+ * @returns 是否删除成功
58
+ * @example
59
+ * const 是否删除成功 = $媒体.清空相册中的截图()
60
+ * if (是否删除成功) {
61
+ * $打印信息日志("删除成功")
62
+ * }
63
+ */
64
+ function 清空相册中的截图(): 布尔值;
65
+
55
66
  /**
56
67
  * 播放MP3音乐(异步播放)
57
68
  * @param 文件路径