Fix various types
This commit is contained in:
parent
6bdf0736ec
commit
900d47d6f9
2 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in a new issue