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