()
| 547 | * Returns the file path if it's an image file, null otherwise. |
| 548 | */ |
| 549 | export function readClipboardImageFilePath(): string | null { |
| 550 | const filePath = readClipboardFilePath() |
| 551 | if (filePath && isImageFile(filePath)) { |
| 552 | return filePath |
| 553 | } |
| 554 | return null |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Read text from clipboard. Returns null if reading fails. |
no test coverage detected