Skip to content

Commit 0c6ea77

Browse files
committed
remove explicit typing
1 parent c7baef7 commit 0c6ea77

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

packages/query-core/src/__tests__/queryClient.test-d.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,7 @@ describe('fully typed usage', () => {
329329
TError,
330330
InfiniteData<TData>
331331
> = {
332-
queryKey: ['key', 'infinite'] as DataTag<
333-
['key', 'infinite'],
334-
InfiniteData<TData>,
335-
TError
336-
>,
332+
queryKey: ['key', 'infinite'],
337333
pages: 5,
338334
getNextPageParam: (lastPage) => {
339335
expectTypeOf(lastPage).toEqualTypeOf<TData>()
@@ -343,16 +339,12 @@ describe('fully typed usage', () => {
343339
}
344340

345341
const queryOptions: EnsureQueryDataOptions<TData, TError> = {
346-
queryKey: ['key', 'query'] as DataTag<['key', 'query'], TData, TError>,
342+
queryKey: ['key', 'query'],
347343
}
348344

349345
const fetchInfiniteQueryOptions: FetchInfiniteQueryOptions<TData, TError> =
350346
{
351-
queryKey: ['key', 'infinite'] as DataTag<
352-
['key', 'infinite'],
353-
InfiniteData<TData>,
354-
TError
355-
>,
347+
queryKey: ['key', 'infinite'],
356348
pages: 5,
357349
getNextPageParam: (lastPage) => {
358350
expectTypeOf(lastPage).toEqualTypeOf<TData>()

0 commit comments

Comments
 (0)