From 1816c0003e28f419d9bc32e71904e824ef9615bc Mon Sep 17 00:00:00 2001 From: Angelo Verlain Date: Thu, 23 May 2024 16:28:34 +0200 Subject: [PATCH] fix: lyrics can be null --- mixins/browsing.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mixins/browsing.ts b/mixins/browsing.ts index 008e980..926df89 100644 --- a/mixins/browsing.ts +++ b/mixins/browsing.ts @@ -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;