From ff4859236e2de4844d5231768f57cbfbe3f937e1 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Sat, 2 May 2026 22:15:41 +0530 Subject: fix: replace @ts-expect-error with @ts-ignore for dynamic sharp import --- src/util/sharp-shim.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/sharp-shim.ts b/src/util/sharp-shim.ts index 7ea409d..a9f145e 100644 --- a/src/util/sharp-shim.ts +++ b/src/util/sharp-shim.ts @@ -23,8 +23,8 @@ export type SharpLoad = export const loadSharp = async (): Promise => { let mod: unknown; try { - // sharp is an optional peer dependency; it may not be installed. - // @ts-expect-error sharp is an optional peer dependency not required at compile time + // sharp is an optional dependency; it may not be installed. + // @ts-ignore — optional peer dependency not required at compile time mod = await import("sharp"); } catch (e) { const msg = e instanceof Error ? e.message : String(e); -- cgit v1.2.3