Skip to content

Commit

Permalink
fix: lyrics can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed May 23, 2024
1 parent 1afa21b commit 1816c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mixins/browsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,17 +440,18 @@ export async function get_song_related(
}

export interface BaseTimedLyrics {
lyrics: string;
source: string;
timed: boolean;
}

export interface UnTimedLyrics extends BaseTimedLyrics {
timed: false;
lyrics: string | null;
}

export interface TimedLyrics extends BaseTimedLyrics {
timed: true;
lyrics: string;
timed_lyrics: {
line: string;
start: number;
Expand Down

0 comments on commit 1816c00

Please sign in to comment.