-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
difficulty: easySmall, bounded changesSmall, bounded changes
Description
Context
Several files use any type instead of proper TypeScript interfaces, undermining the project's strict TypeScript configuration. This reduces IDE support (no autocomplete, no refactoring safety), hides potential bugs, and makes the codebase harder to maintain. The project has TypeScript strict mode enabled — these any usages are escape hatches that should be closed.
What Success Looks Like
- All
anytypes in production source files are replaced with proper typed interfaces - No new
anytypes are introduced - Catch blocks use
unknownand narrow with type guards instead oferror: any - The project compiles cleanly with no TypeScript errors
Implementation Guidance
Key files with any types to fix:
apps/web/src/app/(overview)/offramp/page.tsxline 239 —CheckCircle2(props: any)should useReact.SVGProps<SVGSVGElement>apps/web/src/providers/StellarWalletProvider.tsxline 137 —catch (error: any)should useunknownwith type narrowingapps/web/src/components/modules/history/HistoryTable.tsxline 36 — check foranyin column definitionsapps/web/src/components/modules/payment-stream/PaymentStreamSummary.tsx— check for untyped props- Search the codebase with
grep -r ": any"to find all instances - For catch blocks, use this pattern:
catch (error: unknown) { const message = error instanceof Error ? error.message : String(error); }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
difficulty: easySmall, bounded changesSmall, bounded changes