Fix type
This commit is contained in:
parent
7ae3d9d99a
commit
ac62c26099
1 changed files with 2 additions and 3 deletions
|
@ -8,10 +8,9 @@ import {
|
|||
RawRatingResponse,
|
||||
RatingArgs,
|
||||
Album,
|
||||
Song,
|
||||
AlbumArtist,
|
||||
Artist,
|
||||
LibraryItem,
|
||||
AnyLibraryItems,
|
||||
} from '/@/renderer/api/types';
|
||||
import {
|
||||
useCurrentServer,
|
||||
|
@ -31,7 +30,7 @@ export const useUpdateRating = () => {
|
|||
RawRatingResponse,
|
||||
HTTPError,
|
||||
Omit<RatingArgs, 'server'>,
|
||||
{ previous: { items: Album[] | Song[] | AlbumArtist[] | Artist[] } | undefined }
|
||||
{ previous: { items: AnyLibraryItems } | undefined }
|
||||
>({
|
||||
mutationFn: (args) => {
|
||||
const server = useAuthStore.getState().actions.getServer(args._serverId) || currentServer;
|
||||
|
|
Reference in a new issue