(outputDir: string, typeLines: Array<string>)
| 549 | |
| 550 | // The base pages of the first type line that has any. |
| 551 | async 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. |
| 565 | function signatureTypes(signature: string) { |
no test coverage detected