(filePath: string)
| 92 | } |
| 93 | |
| 94 | function mediaTypeFromExtension(filePath: string): string | null { |
| 95 | return IMAGE_EXTENSION_MEDIA_TYPES.get(path.extname(filePath).toLowerCase()) ?? null |
| 96 | } |
| 97 | |
| 98 | function isKnownBinaryExtension(filePath: string): boolean { |
| 99 | return KNOWN_BINARY_EXTENSIONS.has(path.extname(filePath).toLowerCase()) |
no test coverage detected