TypeScript: Add missing properties for animated images (#4369)

This commit is contained in:
Steven D'Onfro 2025-04-12 06:38:24 -04:00 committed by GitHub
parent 5b5dfbad77
commit 38b6f44611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
lib/index.d.ts vendored
View File

@ -1699,6 +1699,10 @@ declare namespace sharp {
/** When using the attention crop strategy, the focal point of the cropped region */ /** When using the attention crop strategy, the focal point of the cropped region */
attentionX?: number | undefined; attentionX?: number | undefined;
attentionY?: 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 { interface AvailableFormatInfo {