Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ queryFn
Function
queryFn
packages/solid-query/src/__tests__/useQuery.test-d.tsx:74–76 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
72
73
it(
'should infer the result type from a generic query function'
, () => {
74
function queryFn<T = string>(): Promise<T> {
75
return Promise.resolve({} as T)
76
}
77
78
const fromGenericQueryFn = useQuery(() => ({
79
queryKey: key,
Callers
1
useQuery.test-d.tsx
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected