import {
  useQuery,
  type UseQueryOptions,
  type QueryKey,
  type UseQueryResult,
} from "@tanstack/react-query";

export function useAppQuery<TData, TError = Error>(
  options: UseQueryOptions<TData, TError, TData, QueryKey>,
): UseQueryResult<TData, TError> {
  return useQuery<TData, TError, TData, QueryKey>(options);
}
