Skip to content

Commit

Permalink
fix(query-core): widen QueriesObserver queries type (#7446)
Browse files Browse the repository at this point in the history
Widen the `QueriesObserver` queries type so we can assign `UseQueryOptions` to `QueryObserverOptions`.

The result from the `queryOptions` helper can now be passed to `QueriesObserver`.
  • Loading branch information
yannickcr authored and Yannick CROISSANT committed May 29, 2024
1 parent b0c09aa commit cb7c9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/queriesObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class QueriesObserver<

constructor(
client: QueryClient,
queries: Array<QueryObserverOptions>,
queries: Array<QueryObserverOptions<any, any, any, any>>,
_options?: QueriesObserverOptions<TCombinedResult>,
) {
super()
Expand Down

0 comments on commit cb7c9c4

Please sign in to comment.