ms-types 0.3.7 → 0.3.8

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.3.7",
3
+ "version": "0.3.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/media.d.ts CHANGED
@@ -87,4 +87,15 @@ declare namespace media {
87
87
  * }
88
88
  */
89
89
  function playMp3WaitEnd(path: string, loop: boolean): boolean;
90
+
91
+ /**
92
+ * 查询MP3音乐是否正在播放
93
+ * @returns 是否正在播放
94
+ * @example
95
+ * const playing = media.isMp3Playing()
96
+ * if (playing) {
97
+ * logi("正在播放")
98
+ * }
99
+ */
100
+ function isMp3Playing(): boolean;
90
101
  }
@@ -88,4 +88,15 @@ declare namespace $媒体 {
88
88
  * }
89
89
  */
90
90
  function 同步播放MP3音乐(文件路径: 字符串, 是否循环播放: 布尔值): 布尔值;
91
+
92
+ /**
93
+ * 查询MP3音乐是否正在播放
94
+ * @returns 是否正在播放
95
+ * @example
96
+ * const 是否正在播放 = $媒体.查询MP3音乐是否正在播放()
97
+ * if (是否正在播放) {
98
+ * $打印信息日志("正在播放")
99
+ * }
100
+ */
101
+ function 查询MP3音乐是否正在播放(): 布尔值;
91
102
  }