Type Alias UseQueryProps<TData, TQueryKey, TVariables>

UseQueryProps<TData, TQueryKey, TVariables>: Partial<Omit<UseQueryOptions<TData, Error, TData, TQueryKey>, "queryKey" | "queryFn">> & {
    queryFn?: ((data: {
        apiClient: ApiClient;
        apiUrl: string;
        url: string;
        variables: TVariables;
    }) => Promise<QueryResponse> | QueryResponse);
    queryKey?: any[];
}

Type Parameters

  • TData extends QueryResponse
  • TQueryKey extends any[]
  • TVariables extends object