mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +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, useQueryClient } from '@tanstack/react-query';
|
||||
import { HTTPError } from 'ky';
|
||||
import { AxiosError } from 'axios';
|
||||
import { api } from '/@/renderer/api';
|
||||
import { queryKeys } from '/@/renderer/api/query-keys';
|
||||
import {
|
||||
|
|
@ -20,7 +20,7 @@ export const useCreateFavorite = (args: MutationHookArgs) => {
|
|||
|
||||
return useMutation<
|
||||
FavoriteResponse,
|
||||
HTTPError,
|
||||
AxiosError,
|
||||
Omit<FavoriteArgs, 'server' | 'apiClientProps'>,
|
||||
null
|
||||
>({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue