From ab65b7a0f1b9aa3b351047c0dad538766c4c9f4c Mon Sep 17 00:00:00 2001 From: David Vaness Date: Wed, 14 Aug 2024 13:59:10 +0200 Subject: [PATCH] TypeScript: chromaSubsampling can be undefined (#4191) --- lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 90a24be93..7fba55f78 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1069,7 +1069,7 @@ declare namespace sharp { /** Number of pixels per inch (DPI), if present */ density?: number | undefined; /** String containing JPEG chroma subsampling, 4:2:0 or 4:4:4 for RGB, 4:2:0:4 or 4:4:4:4 for CMYK */ - chromaSubsampling: string; + chromaSubsampling?: string | undefined; /** Boolean indicating whether the image is interlaced using a progressive scan */ isProgressive?: boolean | undefined; /** Number of pages/frames contained within the image, with support for TIFF, HEIF, PDF, animated GIF and animated WebP */