mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
Update index.d.ts with replace function overload
Change due to the documentation of cropperjs (https://www.npmjs.com/package/cropperjs#replaceurl-hassamesize).
This commit is contained in:
Vendored
+7
@@ -428,6 +428,13 @@ declare class cropperjs {
|
||||
* @param url A new image url
|
||||
*/
|
||||
replace(url: string): void;
|
||||
|
||||
/**
|
||||
* Replace the image's src and rebuild the cropper. 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. This can be used for applying filters.
|
||||
* @param url A new image url
|
||||
* @param hasSameSize (Default: false)
|
||||
*/
|
||||
replace(url: string, hasSameSize: boolean): void;
|
||||
|
||||
/**
|
||||
* Enable (unfreeze) the cropper.
|
||||
|
||||
Reference in New Issue
Block a user