apps/admin-x-framework/src/utils/api/fetchApi.ts
Function useFetchApi
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useFetchApi = () => {
const {ghostVersion, sentryDSN} = useFramework();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return async <ResponseData = any>(endpoint: string | URL, {headers = {}, retry, ...options}: RequestOptions = {}): Promise<ResponseData> => {