More components
This commit is contained in:
49
src/app.d.ts
vendored
49
src/app.d.ts
vendored
@@ -16,6 +16,55 @@ declare global {
|
||||
username: string
|
||||
password?: string
|
||||
}
|
||||
|
||||
type ServiceType = 'jellyfin' | 'youtube-music'
|
||||
|
||||
interface MediaItem {
|
||||
connectionId: string
|
||||
serviceType: string
|
||||
id: string
|
||||
name: string
|
||||
duration: number
|
||||
thumbnail: string
|
||||
}
|
||||
|
||||
interface Song extends MediaItem {
|
||||
artists: {
|
||||
id: string
|
||||
name: string
|
||||
}[]
|
||||
album?: {
|
||||
id: string
|
||||
name: string
|
||||
artists: {
|
||||
id: string
|
||||
name: string
|
||||
}[]
|
||||
}
|
||||
audio: string
|
||||
video?: string
|
||||
releaseDate: string
|
||||
}
|
||||
|
||||
interface Album extends MediaItem {
|
||||
artists: {
|
||||
id: string
|
||||
name: string
|
||||
}[]
|
||||
songs: Song[]
|
||||
releaseDate: string
|
||||
}
|
||||
|
||||
interface Playlist extends MediaItem {
|
||||
songs: Song[]
|
||||
description?: string
|
||||
}
|
||||
|
||||
interface Artist {
|
||||
id: string
|
||||
name: string
|
||||
// Add more here in the future
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
|
||||
Reference in New Issue
Block a user