(imagePath: string)
| 171 | * Call this when manually removing an image to prevent memory leaks. |
| 172 | */ |
| 173 | export function clearErrorImageTimer(imagePath: string): void { |
| 174 | const timer = errorImageTimers.get(imagePath) |
| 175 | if (timer) { |
| 176 | clearTimeout(timer) |
| 177 | errorImageTimers.delete(imagePath) |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Validate and add an image from a file path. |
no test coverage detected