Skip to content

Commit

Permalink
fix(types): add queryFn to ReactQueryProviderConfig (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bazhanov authored Jul 16, 2020
1 parent 6020706 commit ba7f5ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,9 @@ export interface QueryCache {
queryKeyOrPredicateFn: QueryKeyOrPredicateFn,
{ exact }?: { exact?: boolean }
): void
getQuery(queryKeyOrPredicateFn: QueryKeyOrPredicateFn): CachedQuery<unknown> | undefined
getQuery(
queryKeyOrPredicateFn: QueryKeyOrPredicateFn
): CachedQuery<unknown> | undefined
getQueries(
queryKeyOrPredicateFn: QueryKeyOrPredicateFn,
{ exact }?: { exact?: boolean }
Expand Down Expand Up @@ -671,6 +673,7 @@ export interface ReactQueryProviderConfig<TError = Error> {
/** Defaults to the value of `suspense` if not defined otherwise */
useErrorBoundary?: boolean
refetchOnWindowFocus?: boolean
queryFn?: QueryFunction<unknown, AnyQueryKey>
queryKeySerializerFn?: (
queryKey: QueryKeyPart[] | string | false | undefined
) => [string, QueryKeyPart[]] | []
Expand Down

1 comment on commit ba7f5ff

@vercel
Copy link

@vercel vercel bot commented on ba7f5ff Jul 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.