mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +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 { 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
|
||||
>({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue