(name: string, errors: readonly string[])
| 519 | } |
| 520 | |
| 521 | export function proseThrows(name: string, errors: readonly string[]): string { |
| 522 | return `${name} can stop with ${countOf(errors.length, 'kind of error', 'kinds of error')}: ` |
| 523 | + `${joinNames(errors)}.`; |
| 524 | } |
| 525 | |
| 526 | /** A short English list that never hides its last member. */ |
| 527 | export function joinNames(names: readonly string[]): string { |
no test coverage detected