( outputDir: string, from: string, seen: Set<string>, )
| 531 | } |
| 532 | |
| 533 | async 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. |
| 551 | async function findBasePages(outputDir: string, typeLines: Array<string>) { |
no test coverage detected