mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-14 07:37:24 -05:00
Add lyrics type
This commit is contained in:
15
src/types.ts
15
src/types.ts
@@ -9,6 +9,18 @@ export interface CoverArtwork {
|
|||||||
height: number
|
height: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Lyrics {
|
||||||
|
id: Id
|
||||||
|
source: string
|
||||||
|
lines?: LyricLine[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LyricLine {
|
||||||
|
text: string
|
||||||
|
startTimeMs?: number
|
||||||
|
endTimeMs?: number
|
||||||
|
}
|
||||||
|
|
||||||
export interface Artist {
|
export interface Artist {
|
||||||
id: Id
|
id: Id
|
||||||
url: string
|
url: string
|
||||||
@@ -53,10 +65,11 @@ export interface Track {
|
|||||||
album?: Album
|
album?: Album
|
||||||
durationMs?: number
|
durationMs?: number
|
||||||
coverArtwork?: CoverArtwork[]
|
coverArtwork?: CoverArtwork[]
|
||||||
|
lyrics?: Lyrics
|
||||||
genres?: string[]
|
genres?: string[]
|
||||||
releaseDate?: Date
|
releaseDate?: Date
|
||||||
regions?: string[]
|
|
||||||
description?: string
|
description?: string
|
||||||
|
regions?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Episode {
|
export interface Episode {
|
||||||
|
|||||||
Reference in New Issue
Block a user