mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
52 lines
895 B
TypeScript
52 lines
895 B
TypeScript
export interface Artist {
|
|
itemType: 'artist'
|
|
id: string
|
|
name: string
|
|
starred?: Date
|
|
coverArt?: string
|
|
}
|
|
|
|
export interface AlbumListItem {
|
|
itemType: 'album'
|
|
id: string
|
|
name: string
|
|
artist?: string
|
|
artistId?: string
|
|
starred?: Date
|
|
coverArt?: string
|
|
}
|
|
|
|
export interface Album extends AlbumListItem {
|
|
coverArt?: string
|
|
year?: number
|
|
}
|
|
|
|
export interface PlaylistListItem {
|
|
itemType: 'playlist'
|
|
id: string
|
|
name: string
|
|
comment?: string
|
|
coverArt?: string
|
|
}
|
|
|
|
export interface Song {
|
|
itemType: 'song'
|
|
id: string
|
|
album?: string
|
|
albumId?: string
|
|
artist?: string
|
|
artistId?: string
|
|
title: string
|
|
track?: number
|
|
discNumber?: number
|
|
duration?: number
|
|
starred?: Date
|
|
|
|
// streamUri: string
|
|
coverArt?: string
|
|
}
|
|
|
|
export type ListableItem = Song | AlbumListItem | Artist | PlaylistListItem
|
|
|
|
export type StarrableItemType = 'song' | 'album' | 'artist'
|