( mimeType: string )
| 204 | } |
| 205 | |
| 206 | function getAttachmentContentType( |
| 207 | mimeType: string |
| 208 | ): PreparedProviderAttachment['contentType'] | null { |
| 209 | return getContentType(mimeType) || (isTextDocumentMimeType(mimeType) ? 'document' : null) |
| 210 | } |
| 211 | |
| 212 | function sniffImageMimeType(base64: string): string { |
| 213 | let bytes: Buffer |
no test coverage detected