Skip to content

Commit 736a687

Browse files
committed
fix type error
1 parent 3d71a49 commit 736a687

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular-query-experimental/src/inject-queries.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ export function injectQueries<
244244

245245
const defaultedQueries = computed(() => {
246246
return optionsSignal().queries.map((opts) => {
247-
const defaultedOptions = queryClient.defaultQueryOptions(opts)
247+
const defaultedOptions = queryClient.defaultQueryOptions(
248+
opts as QueryObserverOptions,
249+
)
248250
// Make sure the results are already in fetching state before subscribing or updating options
249251
defaultedOptions._optimisticResults = isRestoring()
250252
? 'isRestoring'

0 commit comments

Comments
 (0)