MCPcopy Create free account
hub / github.com/TanStack/cli / fetchLibraries

Function fetchLibraries

packages/cli/src/discovery.ts:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52export type PartnersResponse = z.infer<typeof PartnersResponseSchema>
53
54export async function fetchLibraries(): Promise<LibrariesResponse> {
55 const response = await fetch(`${TANSTACK_API_BASE}/libraries`)
56 if (!response.ok) {
57 throw new Error(`Failed to fetch libraries: ${response.statusText}`)
58 }
59 const data = await response.json()
60 return LibrariesResponseSchema.parse(data)
61}
62
63export async function fetchPartners(): Promise<PartnersResponse> {
64 const response = await fetch(`${TANSTACK_API_BASE}/partners`)

Callers 1

cliFunction · 0.85

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected