mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Use global libraryitem type on favorite query
This commit is contained in:
@@ -753,11 +753,11 @@ export const artistListSortMap: ArtistListSortMap = {
|
||||
// Favorite
|
||||
export type RawFavoriteResponse = FavoriteResponse | undefined;
|
||||
|
||||
export type FavoriteResponse = { id: string[]; type: FavoriteQuery['type'] };
|
||||
export type FavoriteResponse = { id: string[]; type: LibraryItem };
|
||||
|
||||
export type FavoriteQuery = {
|
||||
id: string[];
|
||||
type?: LibraryItem.SONG | LibraryItem.ALBUM | LibraryItem.ALBUM_ARTIST;
|
||||
type?: LibraryItem;
|
||||
};
|
||||
|
||||
export type FavoriteArgs = { query: FavoriteQuery } & BaseEndpointArgs;
|
||||
|
||||
Reference in New Issue
Block a user