mioku-plugin-music 2.4.0 → 2.4.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/runtime.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mioku-plugin-music",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "音乐插件:点歌、搜索音乐、听歌语音发送",
5
5
  "main": "index.ts",
6
6
  "type": "module",
package/runtime.ts CHANGED
@@ -12,11 +12,11 @@ export interface MusicRuntimeState {
12
12
  const MUSIC_PLUGIN_NAME = "music";
13
13
 
14
14
  export function getMusicRuntimeState(): MusicRuntimeState {
15
- return getPluginRuntimeState<MusicRuntimeState>(MUSIC_PLUGIN_NAME);
15
+ return getPluginRuntimeState(MUSIC_PLUGIN_NAME) as MusicRuntimeState;
16
16
  }
17
17
 
18
18
  export function setMusicRuntimeState(nextState: MusicRuntimeState): MusicRuntimeState {
19
- return setPluginRuntimeState<MusicRuntimeState>(MUSIC_PLUGIN_NAME, nextState);
19
+ return setPluginRuntimeState(MUSIC_PLUGIN_NAME, nextState) as MusicRuntimeState;
20
20
  }
21
21
 
22
22
  export function resetMusicRuntimeState(): void {