CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.44k stars 109 forks source link

'revfd' is declared but its value is never read #693

Open awhitford opened 1 month ago

awhitford commented 1 month ago

https://github.com/CloudCannon/pagefind/blob/012ac7e27f2b102df45481fd7d63be70bd639972/pagefind_web_js/lib/gz.js#L55

This line emits a TypeScript warning:

warning ts(6133): 'revfd' is declared but its value is never read.

I am using this library through Starlight. This appears during the astro check step of a build.

bglw commented 1 week ago

Hi @awhitford — this file is vendored in from another package, so updating the source is likely to revert back at some point. It would be better to have this file ignored by typescript; I can chuck a ts-ignore comment at the top of the file to silence any warnings there.