fix: replace @ts-expect-error with @ts-ignore for dynamic sharp import
amankumarsingh77 amankumarsingh7702@gmal.com
Sat, 02 May 2026 22:15:41 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/util/sharp-shim.ts
→
src/util/sharp-shim.ts
@@ -23,8 +23,8 @@
export const loadSharp = async (): Promise<SharpLoad> => { 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);