mirror of
https://git.lucida.su/lucida/verdana.git
synced 2026-08-16 12:33:25 +00:00
Merge pull request 'add: lyrics type' (#15) from shoenko/lucida:main into main
Reviewed-on: https://git.gay/lucida/lucida/pulls/15
This commit is contained in:
commit
977d125f36
1 changed files with 14 additions and 1 deletions
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…
Reference in a new issue