From 38b6f44611457db7c7bb4100b48ca38b8a0fd42d Mon Sep 17 00:00:00 2001 From: Steven D'Onfro <133390177+sdonfro@users.noreply.github.com> Date: Sat, 12 Apr 2025 06:38:24 -0400 Subject: [PATCH] TypeScript: Add missing properties for animated images (#4369) --- lib/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index 4167efce..1dc697ee 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1699,6 +1699,10 @@ declare namespace sharp { /** When using the attention crop strategy, the focal point of the cropped region */ attentionX?: number | undefined; attentionY?: number | undefined; + /** Number of pages/frames contained within the image, with support for TIFF, HEIF, PDF, animated GIF and animated WebP */ + pages?: number | undefined; + /** Number of pixels high each page in a multi-page image will be. */ + pageHeight?: number | undefined; } interface AvailableFormatInfo {