* Extract text from a queued command value. * For strings, returns the string. * For ContentBlockParam[], extracts text from text blocks.
(value: string | ContentBlockParam[])
| 380 | * For ContentBlockParam[], extracts text from text blocks. |
| 381 | */ |
| 382 | function extractTextFromValue(value: string | ContentBlockParam[]): string { |
| 383 | return typeof value === 'string' ? value : extractTextContent(value, '\n') |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Extract images from ContentBlockParam[] and convert to PastedContent format. |
no test coverage detected