mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
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:
15
types/sharp/index.d.ts
vendored
15
types/sharp/index.d.ts
vendored
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user