Skip to content

Commit e5f23fc

Browse files
fix: Remove unnecessary tsconfig options (TanStack#6653)
1 parent d26cb41 commit e5f23fc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/react-query/src/useBaseQuery.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ import {
1212
} from './errorBoundaryUtils'
1313
import { ensureStaleTime, fetchOptimistic, shouldSuspend } from './suspense'
1414
import 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

1722
export 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(

tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@
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,

0 commit comments

Comments
 (0)