mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
refactored into single method/store
This commit is contained in:
@@ -80,12 +80,25 @@ export type ListableItem = Song | AlbumListItem | Artist | PlaylistListItem
|
||||
|
||||
export type HomeLists = { [key: string]: AlbumListItem[] }
|
||||
|
||||
export type CachedFile = {
|
||||
export enum CacheFileType {
|
||||
coverArt,
|
||||
artistArt,
|
||||
song,
|
||||
}
|
||||
|
||||
export type CacheFileTypeKey = keyof typeof CacheFileType
|
||||
|
||||
export type CacheFile = {
|
||||
path: string
|
||||
date: number
|
||||
permanent: boolean
|
||||
}
|
||||
|
||||
export type CacheRequest = {
|
||||
progress: number
|
||||
promise?: Promise<void>
|
||||
}
|
||||
|
||||
export type DownloadedAlbum = Album & {
|
||||
songs: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user