From 900d47d6f9f59249a2bf6baa9c21d94d49d86838 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 15 Jan 2023 16:07:02 -0800 Subject: [PATCH] Fix various types --- src/renderer/api/subsonic.api.ts | 4 ++-- src/renderer/api/types.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/api/subsonic.api.ts b/src/renderer/api/subsonic.api.ts index c7c69d8f..ff2aca77 100644 --- a/src/renderer/api/subsonic.api.ts +++ b/src/renderer/api/subsonic.api.ts @@ -39,11 +39,11 @@ import { GenreListArgs, LibraryItem, MusicFolderListArgs, + QueueSong, RatingArgs, RatingResponse, ServerListItem, ServerType, - Song, TopSongListArgs, } from '/@/renderer/api/types'; import { toast } from '/@/renderer/components/toast'; @@ -386,7 +386,7 @@ const getArtistInfo = async (args: ArtistInfoArgs): Promise => { return data.artistInfo2; }; -const normalizeSong = (item: SSSong, server: ServerListItem, deviceId: string): Song => { +const normalizeSong = (item: SSSong, server: ServerListItem, deviceId: string): QueueSong => { const imageUrl = getCoverArtUrl({ baseUrl: server.url, diff --git a/src/renderer/api/types.ts b/src/renderer/api/types.ts index 8a163a28..dd9e4730 100644 --- a/src/renderer/api/types.ts +++ b/src/renderer/api/types.ts @@ -334,6 +334,7 @@ export type AlbumListQuery = { jfParams?: { albumArtistIds?: string; artistIds?: string; + contributingArtistIds?: string; filters?: string; genreIds?: string; genres?: string; @@ -462,6 +463,7 @@ export type SongListQuery = { artistIds?: string[]; jfParams?: { artistIds?: string; + contributingArtistIds?: string; filters?: string; genreIds?: string; genres?: string;