Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const makeCropTransform = (): ((ir: ImageResult) => Promise) => (ir: ImageResult): Promise => {
const rect = imagePanel.getRect();
return ImageTransformations.crop(ir, rect.x, rect.y, rect.w, rect.h);
};