Overview
Running tsc --noEmit reports 4 TypeScript errors in src/components/ui/CachedImage.tsx. These are part of the project-wide type-check debt tracked in #1074; fixing them file-by-file is the agreed approach. This issue covers just this one file so it stays a small, self-contained change.
Specifications
Features:
src/components/ui/CachedImage.tsx compiles with no TypeScript errors under tsc --noEmit.
Tasks:
- Run
npx tsc --noEmit and address every error reported for src/components/ui/CachedImage.tsx (correct types, add missing properties/exports, fix generic/prop mismatches, remove unsafe casts).
- Keep the change behaviour-preserving; do not silence errors with
@ts-ignore/as any.
Impacted Files:
src/components/ui/CachedImage.tsx
Acceptance Criteria
npx tsc --noEmit reports zero errors for src/components/ui/CachedImage.tsx.
- No new
@ts-ignore/as any is introduced.
- All the CI passes
- Star the repo
Overview
Running
tsc --noEmitreports 4 TypeScript errors insrc/components/ui/CachedImage.tsx. These are part of the project-wide type-check debt tracked in #1074; fixing them file-by-file is the agreed approach. This issue covers just this one file so it stays a small, self-contained change.Specifications
Features:
src/components/ui/CachedImage.tsxcompiles with no TypeScript errors undertsc --noEmit.Tasks:
npx tsc --noEmitand address every error reported forsrc/components/ui/CachedImage.tsx(correct types, add missing properties/exports, fix generic/prop mismatches, remove unsafe casts).@ts-ignore/as any.Impacted Files:
src/components/ui/CachedImage.tsxAcceptance Criteria
npx tsc --noEmitreports zero errors forsrc/components/ui/CachedImage.tsx.@ts-ignore/as anyis introduced.