MCPcopy Create free account
hub / github.com/TanStack/query / callbackTest

Function callbackTest

packages/query-core/src/__tests__/queryClient.test-d.tsx:768–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

766
767 // @ts-expect-error
768 const callbackTest: SuccessCallback = () =>
769 queryClient.setQueryData(key, (data) => {
770 expectTypeOf(data).toEqualTypeOf<number | undefined>()
771 return data
772 })
773})
774
775it('should infer types correctly with block body arrow functions', () => {

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected