Minimal interface satisfied by QueryReturn. Used for refetchEndpoints in cache invalidation options.
QueryReturn
refetchEndpoints
Uses Promise<unknown> so this is compatible with TanStack's real refetch return type (Promise<QueryObserverResult<TData, TError>>).
Promise<unknown>
refetch
Promise<QueryObserverResult<TData, TError>>
Minimal interface satisfied by
QueryReturn. Used forrefetchEndpointsin cache invalidation options.Uses
Promise<unknown>so this is compatible with TanStack's realrefetchreturn type (Promise<QueryObserverResult<TData, TError>>).