(content: Array<{ type: string; text?: string }>)
| 108 | * message text. |
| 109 | */ |
| 110 | export function contentBlocksToText(content: Array<{ type: string; text?: string }>): string { |
| 111 | return content |
| 112 | .filter((b): b is { type: 'text'; text: string } => b.type === 'text') |
| 113 | .map(b => b.text) |
| 114 | .join(''); |
| 115 | } |
| 116 | |
| 117 | type PreviewBlock = { type: string; text?: string; filename?: string; mimeType?: string }; |
| 118 |
no test coverage detected