Merge pull request #30753 from shenphen/patch-1

[@types/cropperjs] Update index.d.ts with replace function overload
This commit is contained in:
Andrew Casey
2018-12-05 17:30:29 -08:00
committed by GitHub
+2 -1
View File
@@ -426,8 +426,9 @@ declare class cropperjs {
/**
* Replace the image's src and rebuild the cropper.
* @param url A new image url
* @param hasSameSize If the new image has the same size with the old one, then it will not rebuilt the cropper and only update the urls of all related images. (Default: false)
*/
replace(url: string): void;
replace(url: string, hasSameSize?: boolean): void;
/**
* Enable (unfreeze) the cropper.