xref: /MusicFree/src/types/lyric.d.ts (revision 095287552b9baf2f2ceeb9397c563c292a4f7934)
1declare namespace ILyric {
2    export interface ILyricItem extends IMusic.IMusicItem {
3        /** 歌词(无时间戳) */
4        rawLrcTxt?: string;
5    }
6
7    export interface ILyricSource {
8        /** 歌词url */
9        lrc?: string;
10        /** 纯文本 */
11        rawLrc?: string;
12        /** 语言 */
13        lang?: string;
14        /** 其他版本 key: 语言代码 value: 歌词 */
15        versions?: Record<string, Omit<ILyricSource, 'versions'>>;
16    }
17
18    export interface IParsedLrcItem {
19        /** 时间 s */
20        time: number;
21        /** 歌词 */
22        lrc: string;
23        /** 下标 */
24        index?: number;
25    }
26
27    export type IParsedLrc = IParsedLrcItem[];
28}
29