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

Function typePage

scripts/generate-docs.ts:477–484  ·  view source on GitHub ↗
(outputDir: string, name: string)

Source from the content-addressed store, hash-verified

475}
476
477async function typePage(outputDir: string, name: string) {
478 for (const from of [`interfaces/${name}`, `type-aliases/${name}`]) {
479 if ((await readPage(outputDir, from)) !== undefined) {
480 return from
481 }
482 }
483 return undefined
484}
485
486// The pages with a `## Properties` table that a type expression without one is built from: every
487// member of an intersection (skipping object literals, which only add properties), and the first type

Callers 1

basePagesOfTypeFunction · 0.85

Calls 1

readPageFunction · 0.85

Tested by

no test coverage detected