Update index.d.ts (#38238)

Removed the method `overlayWith`. It does not exist anymore. Use `compsite`. See issue for more details.
Fixes #38236
This commit is contained in:
Domvel
2019-09-25 01:55:21 +02:00
committed by Ben Lichtman
parent 46c2eed830
commit f487edd78e

View File

@@ -200,21 +200,6 @@ declare namespace sharp {
//#region Composite functions
/**
* Overlay (composite) an image over the processed (resized, extracted etc.) image.
*
* The overlay image must be the same size or smaller than the processed image.
* If both top and left options are provided, they take precedence over gravity.
*
* If the overlay image contains an alpha channel then composition with premultiplication will occur.
* @param image Buffer containing image data or String containing the path to an image file.
* @param options overlay options
* @throws {Error} Invalid parameters
* @returns A sharp instance that can be used to chain operations
* @deprecated
*/
overlayWith(image?: string | Buffer, options?: OverlayOptions): Sharp;
/**
* Composite image(s) over the processed (resized, extracted etc.) image.
*