Mawi137/ngx-image-cropper

crop() should be a Promise

Closed this issue · 2 comments

using the crop() method, I do see that this does return a promise

ToDo

  • Add the correct type to the method return value

It depends on what the output type is:

crop(output: OutputType = this.settings.output): Promise<ImageCroppedEvent> | ImageCroppedEvent | null {

@Mawi137 Thx Mawi137. Closing the issue