(
overview: Pick<ArchitectureOverviewDto, 'entryPoints' | 'routes'> | undefined,
)
| 70 | |
| 71 | /** The sentence under the list, or empty when the list needs no sentence. */ |
| 72 | export function routeNote( |
| 73 | overview: Pick<ArchitectureOverviewDto, 'entryPoints' | 'routes'> | undefined, |
| 74 | ): string { |
| 75 | if (overview === undefined || (overview.routes ?? []).length > 0) { |
| 76 | return ''; |
| 77 | } |
| 78 | return NO_ROUTES_NOTE; |
| 79 | } |
| 80 | |
| 81 | function whereOf(filePath: string | undefined, line: number | undefined): string { |
| 82 | if (filePath === undefined || filePath.length === 0) { |
no outgoing calls
no test coverage detected