import { QueryKey, UseQueryOptions } from "@tanstack/react-query";
import { AxiosError } from "axios";

export interface CustomUseQueryOptions<
  TQueryFnData = any,
  TQueryKey extends QueryKey = QueryKey,
  TData = TQueryFnData,
  TError = AxiosError<any, any>
> extends Omit<
    UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
    "queryFn" | "queryKey"
  > {}
