Fix various types

This commit is contained in:
jeffvli 2023-01-15 16:07:02 -08:00
parent 6bdf0736ec
commit 900d47d6f9
2 changed files with 4 additions and 2 deletions

View file

@ -39,11 +39,11 @@ import {
GenreListArgs, GenreListArgs,
LibraryItem, LibraryItem,
MusicFolderListArgs, MusicFolderListArgs,
QueueSong,
RatingArgs, RatingArgs,
RatingResponse, RatingResponse,
ServerListItem, ServerListItem,
ServerType, ServerType,
Song,
TopSongListArgs, TopSongListArgs,
} from '/@/renderer/api/types'; } from '/@/renderer/api/types';
import { toast } from '/@/renderer/components/toast'; import { toast } from '/@/renderer/components/toast';
@ -386,7 +386,7 @@ const getArtistInfo = async (args: ArtistInfoArgs): Promise<SSArtistInfo> => {
return data.artistInfo2; return data.artistInfo2;
}; };
const normalizeSong = (item: SSSong, server: ServerListItem, deviceId: string): Song => { const normalizeSong = (item: SSSong, server: ServerListItem, deviceId: string): QueueSong => {
const imageUrl = const imageUrl =
getCoverArtUrl({ getCoverArtUrl({
baseUrl: server.url, baseUrl: server.url,

View file

@ -334,6 +334,7 @@ export type AlbumListQuery = {
jfParams?: { jfParams?: {
albumArtistIds?: string; albumArtistIds?: string;
artistIds?: string; artistIds?: string;
contributingArtistIds?: string;
filters?: string; filters?: string;
genreIds?: string; genreIds?: string;
genres?: string; genres?: string;
@ -462,6 +463,7 @@ export type SongListQuery = {
artistIds?: string[]; artistIds?: string[];
jfParams?: { jfParams?: {
artistIds?: string; artistIds?: string;
contributingArtistIds?: string;
filters?: string; filters?: string;
genreIds?: string; genreIds?: string;
genres?: string; genres?: string;