fix all typescript lenting errors

This commit is contained in:
KingKDot
2026-05-06 20:07:15 -05:00
parent df0f4e45a4
commit 7c858e4984
14 changed files with 56 additions and 47 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
let _sharp: (typeof import("sharp") extends { default: infer D } ? D : never) | null = null;
let _sharp: any = null;
let _sharpLoadAttempted = false;
async function getSharp(): Promise<typeof import("sharp") extends { default: infer D } ? D : never> {
async function getSharp(): Promise<any> {
if (_sharp) return _sharp;
if (_sharpLoadAttempted) throw new Error("sharp module unavailable");
_sharpLoadAttempted = true;