Skip to content
Client
Server

Reference / @open-music-sdk/react / tQueries

Type Alias: tQueries<F> ​

ts
type tQueries<F> = { readonly [K in keyof F as [tQueryOf<F[K]>] extends [never] ? never : K]: tQueryOf<F[K]> };

Defined in: integrations/react/src/query.ts:51

Every read function of F, as its query. A relationship or a view is generic over its name, which a mapped type loses, so its query is typed as the union of what any of its names holds.

Type Parameters ​

F ​

F

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.