Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed May 12, 2020
2 parents db28742 + f8bdce9 commit 7868c9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,12 @@ export interface QueryCache {
config?: PrefetchQueryOptions<TResult>
}): Promise<TResult>

getQueryData(key: AnyQueryKey | string): unknown | undefined
setQueryData(
getQueryData<T = unknown>(key: AnyQueryKey | string): T | undefined
setQueryData<T = unknown>(
key: AnyQueryKey | string,
dataOrUpdater: unknown | ((oldData: unknown | undefined) => unknown)
dataOrUpdater: T | ((oldData: T | undefined) => T)
): void
refetchQueries(
refetchQueries<TResult>(
queryKeyOrPredicateFn:
| AnyQueryKey
| string
Expand All @@ -682,7 +682,7 @@ export interface QueryCache {
throwOnError,
force,
}?: { exact?: boolean; throwOnError?: boolean; force?: boolean }
): Promise<void>
): Promise<TResult>
removeQueries(
queryKeyOrPredicateFn:
| AnyQueryKey
Expand Down

0 comments on commit 7868c9e

Please sign in to comment.