diff --git a/front/src/hooks/useFetch.ts b/front/src/hooks/useFetch.ts index 327ba63..e20a86e 100644 --- a/front/src/hooks/useFetch.ts +++ b/front/src/hooks/useFetch.ts @@ -29,7 +29,7 @@ const fallbackError = (res: UseFetchReturn) => ( gotError(res) ? res.error : res.data ) -function useFetch( +function useFetch>( url: string, method: RequestInit['method'], needAuth: boolean, diff --git a/front/src/hooks/useSend.ts b/front/src/hooks/useSend.ts index 48345bd..12e1839 100644 --- a/front/src/hooks/useSend.ts +++ b/front/src/hooks/useSend.ts @@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom' import { getToken } from '../utils/auth' import { handleHTTPErrors, isAborted } from '../utils' -function useSend( +function useSend>( url: string, method: RequestInit['method'], needAuth: boolean,