diff --git a/types/index.d.ts b/types/index.d.ts index 02393d8070..2d4895744f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -743,9 +743,10 @@ export const ReactQueryCacheProvider: React.ComponentType<{ */ export function useIsFetching(): number -export const ReactQueryConfigProvider: React.ComponentType<{ - config?: ReactQueryProviderConfig -}> +export function ReactQueryConfigProvider(props: { + config?: ReactQueryProviderConfig; + children?: React.ReactNode; +}): React.ReactElement; export interface ReactQueryProviderConfig extends BaseQueryOptions { /** Defaults to the value of `suspense` if not defined otherwise */