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

Function findBasePages

scripts/generate-docs.ts:551–562  ·  view source on GitHub ↗
(outputDir: string, typeLines: Array<string>)

Source from the content-addressed store, hash-verified

549
550// The base pages of the first type line that has any.
551async function findBasePages(outputDir: string, typeLines: Array<string>) {
552 for (const typeLine of typeLines) {
553 const type = typeLine
554 .replace(/\[`?(\w+)`?\]\([^)]*\)/g, '$1')
555 .replace(/[\\`]/g, '')
556 const pages = await basePagesOfType(outputDir, type, new Set())
557 if (pages.length) {
558 return pages
559 }
560 }
561 return []
562}
563
564// The type line of each parameter and of the return value in one call signature.
565function signatureTypes(signature: string) {

Callers 1

findPropertiesTableFunction · 0.85

Calls 1

basePagesOfTypeFunction · 0.85

Tested by

no test coverage detected