From f487edd78e27f161d3a85bea77018134ddcdfeca Mon Sep 17 00:00:00 2001 From: Domvel <35452565+Domvel@users.noreply.github.com> Date: Wed, 25 Sep 2019 01:55:21 +0200 Subject: [PATCH] Update index.d.ts (#38238) Removed the method `overlayWith`. It does not exist anymore. Use `compsite`. See issue for more details. Fixes #38236 --- types/sharp/index.d.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/types/sharp/index.d.ts b/types/sharp/index.d.ts index 9b9957fef7..3f6cc07c45 100644 --- a/types/sharp/index.d.ts +++ b/types/sharp/index.d.ts @@ -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. *