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