feature/share-libs
ts 15 lines 253 Bytes
Raw
1 export default interface LyricSynch {
2 id: number,
3 lyric: string,
4 time: string
5 }
6
7 export function compare(a: LyricSynch, b: LyricSynch) {
8 if (a.id < 0) {
9 return 0
10 }
11 if (a.id < b.id) {
12 return -1
13 }
14 return 0
15 }