import type { UseMutationResult } from '@tanstack/react-query' import type { ReactNode } from 'react' import { describe, expectTypeOf, it } from 'vitest' import { Mutation } from './Mutation' const mutationFn = () => Promise.resolve(5) describe('', () => { it('type check', () => { ;(() => ( {(mutation) => { expectTypeOf(mutation).toEqualTypeOf>() return <> }} ))() expectTypeOf({() => <>}).toEqualTypeOf() expectTypeOf({() => <>}).not.toEqualTypeOf() }) })