File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ import {
1212} from './errorBoundaryUtils'
1313import { ensureStaleTime , fetchOptimistic , shouldSuspend } from './suspense'
1414import type { UseBaseQueryOptions } from './types'
15- import type { QueryClient , QueryKey , QueryObserver } from '@tanstack/query-core'
15+ import type {
16+ QueryClient ,
17+ QueryKey ,
18+ QueryObserver ,
19+ QueryObserverResult ,
20+ } from '@tanstack/query-core'
1621
1722export function useBaseQuery <
1823 TQueryFnData ,
@@ -30,7 +35,7 @@ export function useBaseQuery<
3035 > ,
3136 Observer : typeof QueryObserver ,
3237 queryClient ?: QueryClient ,
33- ) {
38+ ) : QueryObserverResult < TData , TError > {
3439 if ( process . env . NODE_ENV !== 'production' ) {
3540 if ( typeof options !== 'object' || Array . isArray ( options ) ) {
3641 throw new Error (
Original file line number Diff line number Diff line change 55 "allowSyntheticDefaultImports" : true ,
66 "allowUnreachableCode" : false ,
77 "allowUnusedLabels" : false ,
8- "baseUrl" : " ." ,
98 "checkJs" : true ,
109 "declaration" : true ,
11- "declarationMap" : true ,
1210 "esModuleInterop" : true ,
1311 "forceConsistentCasingInFileNames" : true ,
1412 "isolatedModules" : true ,
1513 "lib" : [" DOM" , " DOM.Iterable" , " ES2022" ],
1614 "module" : " ES2022" ,
1715 "moduleResolution" : " Bundler" ,
1816 "noEmit" : true ,
19- "noImplicitAny" : true ,
2017 "noImplicitReturns" : true ,
21- "noImplicitThis" : true ,
2218 "noUncheckedIndexedAccess" : true ,
2319 "noUnusedLocals" : true ,
2420 "noUnusedParameters" : true ,
You can’t perform that action at this time.
0 commit comments