Client
Server
Reference / @open-music-sdk/react / tQueryOf
type tQueryOf<F> = F extends tEndpoint<infer A, infer R, infer U, infer K> ? K extends "pages" ? (...args) => tInfiniteQuery<R & tPage<unknown>> : K extends "written" ? never : (...args) => tQuery<Awaited<U>> : never;Defined in: integrations/react/src/query.ts:40
A function for an endpoint as a function of the same arguments giving its query: one answer, or a walk. A write has none. Building a query asks nothing and throws nothing, but a walk's with maxPages among its options, which is a TypeError: how many pages are kept is TanStack's maxPages, on useInfiniteQuery. What the arguments are is checked when the query runs, by the function itself.
F