Use global libraryitem type on favorite query
This commit is contained in:
parent
7d8cb0bb45
commit
f4f06abd72
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue