()
| 54 | } |
| 55 | |
| 56 | export async function pickImageFiles(): Promise<string[]> { |
| 57 | const selection = await open({ |
| 58 | multiple: true, |
| 59 | filters: [ |
| 60 | { |
| 61 | name: "Images", |
| 62 | extensions: [ |
| 63 | "png", |
| 64 | "jpg", |
| 65 | "jpeg", |
| 66 | "gif", |
| 67 | "webp", |
| 68 | "bmp", |
| 69 | "tiff", |
| 70 | "tif", |
| 71 | "heic", |
| 72 | "heif", |
| 73 | ], |
| 74 | }, |
| 75 | ], |
| 76 | }); |
| 77 | if (!selection) { |
| 78 | return []; |
| 79 | } |
| 80 | return Array.isArray(selection) ? selection : [selection]; |
| 81 | } |
| 82 | |
| 83 | export async function exportMarkdownFile( |
| 84 | content: string, |
no outgoing calls
no test coverage detected