mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Replace mutation error types with AxiosError
This commit is contained in:
parent
3efeaa7359
commit
a19673d3c2
10 changed files with 21 additions and 21 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useQueryClient, useMutation } from '@tanstack/react-query';
|
||||
import { HTTPError } from 'ky';
|
||||
import { AxiosError } from 'axios';
|
||||
import { api } from '/@/renderer/api';
|
||||
import { NDAlbumDetail, NDAlbumArtistDetail } from '/@/renderer/api/navidrome.types';
|
||||
import { queryKeys } from '/@/renderer/api/query-keys';
|
||||
|
|
@ -22,7 +22,7 @@ export const useUpdateRating = () => {
|
|||
|
||||
return useMutation<
|
||||
RatingResponse,
|
||||
HTTPError,
|
||||
AxiosError,
|
||||
Omit<SetRatingArgs, 'server' | 'apiClientProps'>,
|
||||
{ previous: { items: AnyLibraryItems } | undefined }
|
||||
>({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue