From 5834ee31469b257c44624d7be7cc7db887e6bab1 Mon Sep 17 00:00:00 2001 From: Christian Rodemeyer Date: Sat, 29 Nov 2025 15:54:30 +0100 Subject: [PATCH] fix type Exif to have property Thumbnail, to match implementation --- exiv2/README.md | 2 -- exiv2/generate.mjs | 3 +-- index.d.ts | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/exiv2/README.md b/exiv2/README.md index 5b8c389..d7fd626 100644 --- a/exiv2/README.md +++ b/exiv2/README.md @@ -17,5 +17,3 @@ As the type information is incomplete for a few tags (e.g. the exif-reader autom The website itself is generated based on the output of a tool called `taglist` (part of the Exiv2 project), so if the website vanishes, we can still use this tool. (But need some investment of time to build it from the C++ sources) - - diff --git a/exiv2/generate.mjs b/exiv2/generate.mjs index aa4e479..137b8a1 100644 --- a/exiv2/generate.mjs +++ b/exiv2/generate.mjs @@ -26,7 +26,6 @@ const tagsjs = `/** ${tagGroups.map(generateTagGroup).join('\n')} ` writeFileSync(join(wd, '..', 'tags.js'), tagsjs); -//console.log(tagsjs); const getType = (group, tag, type) => { if (numberArrayTags[group]?.includes(tag)) return 'number[]'; @@ -105,7 +104,7 @@ declare namespace exif { type Exif = { bigEndian: boolean ${groups.map((group) => `${group}?: Partial<${group}Tags>`).join('\n ')} - ThumbnailTags?: Partial + Thumbnail?: Partial } ${tagGroups.map(generateTagGroupTypes).join('\n\n')} diff --git a/index.d.ts b/index.d.ts index b3b64b1..9d81569 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,7 +14,7 @@ declare namespace exif { Photo?: Partial Iop?: Partial GPSInfo?: Partial - ThumbnailTags?: Partial + Thumbnail?: Partial } type ImageTags = Record & {