xref: /MusicFree/src/types/music.d.ts (revision 5d19d26c98d1c233995663070b95e5f28b5b9e1c)
1declare namespace IMusic {
2    export interface IMusicItemBase extends ICommon.IMediaBase {
3        /** 其他属性 */
4        [k: keyof IMusicItem]: IMusicItem[k];
5    }
6
7    export interface IMusicItem {
8        /** 歌曲在平台的唯一编号 */
9        id: string;
10        /** 平台 */
11        platform: string;
12        /** 作者 */
13        artist: string;
14        /** 标题 */
15        title: string;
16        /** 时长(s) */
17        duration: number;
18        /** 专辑名 */
19        album: string;
20        /** 专辑封面图 */
21        artwork: string;
22        /** 音源 */
23        url?: string;
24        /** 歌词URL */
25        lrc?: string;
26        /** 歌词 */
27        rawLrc?: string;
28        /** 其他可以被序列化的信息 */
29        [k: string]: any;
30        /** 内部信息 */
31        [k: symbol]: any;
32    }
33}
34