mirror of
https://git.gay/lucida/lucida
synced 2025-12-11 20:15:14 +01:00
Add lyrics type
This commit is contained in:
parent
c413de924c
commit
0fa3bde177
15
src/types.ts
15
src/types.ts
@ -9,6 +9,18 @@ export interface CoverArtwork {
|
||||
height: number
|
||||
}
|
||||
|
||||
export interface Lyrics {
|
||||
id: Id
|
||||
source: string
|
||||
lines?: LyricLine[]
|
||||
}
|
||||
|
||||
export interface LyricLine {
|
||||
text: string
|
||||
startTimeMs?: number
|
||||
endTimeMs?: number
|
||||
}
|
||||
|
||||
export interface Artist {
|
||||
id: Id
|
||||
url: string
|
||||
@ -53,10 +65,11 @@ export interface Track {
|
||||
album?: Album
|
||||
durationMs?: number
|
||||
coverArtwork?: CoverArtwork[]
|
||||
lyrics?: Lyrics
|
||||
genres?: string[]
|
||||
releaseDate?: Date
|
||||
regions?: string[]
|
||||
description?: string
|
||||
regions?: string[]
|
||||
}
|
||||
|
||||
export interface Episode {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user