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