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

Function callbackTest

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

Source from the content-addressed store, hash-verified

611
612 // @ts-expect-error
613 const callbackTest: SuccessCallback = () =>
614 queryClient.setQueryData(key, (data) => {
615 expectTypeOf(data).toEqualTypeOf<number | undefined>()
616 return data
617 })
618})
619
620it('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