TypeScript: ensure definition of sharp.versions matches reality

This commit is contained in:
Lovell Fuller 2025-02-10 17:37:54 +00:00
parent 5ab9168813
commit 9d01dd20bf

26
lib/index.d.ts vendored
View File

@ -50,33 +50,35 @@ declare namespace sharp {
/** An Object containing the version numbers of sharp, libvips and its dependencies. */ /** An Object containing the version numbers of sharp, libvips and its dependencies. */
const versions: { const versions: {
vips: string; aom?: string | undefined;
archive?: string | undefined;
cairo?: string | undefined; cairo?: string | undefined;
croco?: string | undefined; cgif?: string | undefined;
exif?: string | undefined; exif?: string | undefined;
expat?: string | undefined; expat?: string | undefined;
ffi?: string | undefined; ffi?: string | undefined;
fontconfig?: string | undefined; fontconfig?: string | undefined;
freetype?: string | undefined; freetype?: string | undefined;
gdkpixbuf?: string | undefined; fribidi?: string | undefined;
gif?: string | undefined;
glib?: string | undefined; glib?: string | undefined;
gsf?: string | undefined;
harfbuzz?: string | undefined; harfbuzz?: string | undefined;
jpeg?: string | undefined; heif?: string | undefined;
highway?: string | undefined;
imagequant?: string | undefined;
lcms?: string | undefined; lcms?: string | undefined;
orc?: string | undefined; mozjpeg?: string | undefined;
pango?: string | undefined; pango?: string | undefined;
pixman?: string | undefined; pixman?: string | undefined;
png?: string | undefined; png?: string | undefined;
sharp?: string | undefined; "proxy-libintl"?: string | undefined;
svg?: string | undefined; rsvg?: string | undefined;
sharp: string;
spng?: string | undefined;
tiff?: string | undefined; tiff?: string | undefined;
vips: string;
webp?: string | undefined; webp?: string | undefined;
avif?: string | undefined;
heif?: string | undefined;
xml?: string | undefined; xml?: string | undefined;
zlib?: string | undefined; "zlib-ng"?: string | undefined;
}; };
/** An Object containing the available interpolators and their proper values */ /** An Object containing the available interpolators and their proper values */