(part: FilePart)
| 5 | } |
| 6 | |
| 7 | export function inline(part: FilePart) { |
| 8 | if (attached(part)) return false |
| 9 | return part.source?.text?.start !== undefined && part.source?.text?.end !== undefined |
| 10 | } |
| 11 | |
| 12 | export function kind(part: FilePart) { |
| 13 | return part.mime.startsWith("image/") ? "image" : "file" |
no test coverage detected