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

Function readPage

scripts/generate-docs.ts:619–624  ·  view source on GitHub ↗
(outputDir: string, from: string)

Source from the content-addressed store, hash-verified

617}
618
619function readPage(outputDir: string, from: string) {
620 return readFile(resolve(outputDir, `${from}.md`), 'utf8').then(
621 (source) => source,
622 () => undefined,
623 )
624}
625
626// Resolves a type page to the interface pages it stands for: itself when it has a `## Properties`
627// table, or the members of a plain alias or union. Anything else (intersections, `Omit`, `Override`, …)

Callers 6

isWrapperAliasFunction · 0.85
typePageFunction · 0.85
basePagesFunction · 0.85
resolveInterfacePagesFunction · 0.85
propertiesPageFunction · 0.85
readPropertiesTableFunction · 0.85

Calls 2

readFileFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected