Replace mutation error types with AxiosError

This commit is contained in:
jeffvli 2023-05-09 05:53:57 -07:00
parent 3efeaa7359
commit a19673d3c2
10 changed files with 21 additions and 21 deletions

View file

@ -1,5 +1,5 @@
import { useMutation } from '@tanstack/react-query';
import { HTTPError } from 'ky';
import { AxiosError } from 'axios';
import { api } from '/@/renderer/api';
import { ScrobbleResponse, ScrobbleArgs } from '/@/renderer/api/types';
import { MutationOptions } from '/@/renderer/lib/react-query';
@ -10,7 +10,7 @@ export const useSendScrobble = (options?: MutationOptions) => {
return useMutation<
ScrobbleResponse,
HTTPError,
AxiosError,
Omit<ScrobbleArgs, 'server' | 'apiClientProps'>,
null
>({