Skip to content

Commit 67394db

Browse files
authored
fix: use generic Error type in ReactQueryProviderConfig.queries (#742)
1 parent 046f354 commit 67394db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ export function ReactQueryConfigProvider<TError = Error>(props: {
667667
}): React.ReactElement
668668

669669
export interface ReactQueryProviderConfig<TError = Error> {
670-
queries?: BaseQueryOptions & {
670+
queries?: BaseQueryOptions<unknown, TError> & {
671671
/** Defaults to the value of `suspense` if not defined otherwise */
672672
useErrorBoundary?: boolean
673673
refetchOnWindowFocus?: boolean

0 commit comments

Comments
 (0)