diff options
| author | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 22:15:41 +0530 |
|---|---|---|
| committer | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 22:15:41 +0530 |
| commit | ff4859236e2de4844d5231768f57cbfbe3f937e1 (patch) | |
| tree | f1826b91a41597bff6caecde97b6bacffa24915c /src/util | |
| parent | 167c50de84076a9605e2685a99f202818c224ebe (diff) | |
fix: replace @ts-expect-error with @ts-ignore for dynamic sharp import
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/sharp-shim.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<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); |
