diff --git a/packages/react-query/src/infiniteQueryOptions.ts b/packages/react-query/src/infiniteQueryOptions.ts index 097008726d..594c4217e2 100644 --- a/packages/react-query/src/infiniteQueryOptions.ts +++ b/packages/react-query/src/infiniteQueryOptions.ts @@ -57,7 +57,7 @@ export type UnusedSkipTokenInfiniteOptions< TQueryKey, TPageParam >['queryFn'], - SkipToken + SkipToken | undefined > } diff --git a/packages/react-query/src/queryOptions.ts b/packages/react-query/src/queryOptions.ts index 4daaf36a80..f07020791b 100644 --- a/packages/react-query/src/queryOptions.ts +++ b/packages/react-query/src/queryOptions.ts @@ -31,7 +31,7 @@ export type UnusedSkipTokenOptions< > & { queryFn?: Exclude< UseQueryOptions['queryFn'], - SkipToken + SkipToken | undefined > }