(path: string)
| 17 | export type ImageMimeType = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp'; |
| 18 | |
| 19 | export function isSupportedImagePath(path: string): boolean { |
| 20 | return IMAGE_EXTENSIONS.has(extname(path).toLowerCase()); |
| 21 | } |
| 22 | |
| 23 | export async function readWorkspaceImage( |
| 24 | path: string, |
no test coverage detected