(text: string, width: number)
| 32 | } |
| 33 | |
| 34 | function shorten(text: string, width: number): string { |
| 35 | if (text.length <= width) return text; |
| 36 | return `${text.slice(0, width)}…`; |
| 37 | } |
| 38 | |
| 39 | export function formatContentPartMd(part: ContentPart): string { |
| 40 | switch (part.type) { |
no outgoing calls
no test coverage detected