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

Function queryFn

packages/lit-query/src/__tests__/createQueryController.test-d.ts:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94 it('should infer the result type from a generic query function', () => {
95 function queryFn<T = string>(): Promise<T> {
96 return Promise.resolve({} as T)
97 }
98
99 const query = createQueryController(
100 new Host(),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected