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

Function basePages

scripts/generate-docs.ts:533–548  ·  view source on GitHub ↗
(
  outputDir: string,
  from: string,
  seen: Set<string>,
)

Source from the content-addressed store, hash-verified

531}
532
533async function basePages(
534 outputDir: string,
535 from: string,
536 seen: Set<string>,
537): Promise<Array<string>> {
538 if (seen.has(from)) {
539 return []
540 }
541 seen.add(from)
542 const page = await propertiesPage(outputDir, from)
543 if (page) {
544 return [page]
545 }
546 const code = typeAliasBody(await readPage(outputDir, from))
547 return code ? basePagesOfType(outputDir, code, seen) : []
548}
549
550// The base pages of the first type line that has any.
551async function findBasePages(outputDir: string, typeLines: Array<string>) {

Callers 1

basePagesOfTypeFunction · 0.85

Calls 5

propertiesPageFunction · 0.85
typeAliasBodyFunction · 0.85
readPageFunction · 0.85
basePagesOfTypeFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected