import { infiniteQueryOptions } from '@tanstack/react-query' import type { ReactNode } from 'react' import { describe, expectTypeOf, it } from 'vitest' import { PrefetchInfiniteQuery } from './PrefetchInfiniteQuery' import { queryFn, queryKey } from './test-utils' describe('', () => { it('type check', () => { ;(() => ( ))() ;(() => ( ))() ;(() => ( ))() ;(() => ( ))() ;(() => ( ))() ;(() => )() const options = infiniteQueryOptions({ queryKey, queryFn, }) ;(() => )() expectTypeOf().toEqualTypeOf() expectTypeOf().not.toEqualTypeOf() expectTypeOf( {() => <>} ).toEqualTypeOf() expectTypeOf( {() => <>} ).not.toEqualTypeOf() }) })