-
Notifications
You must be signed in to change notification settings - Fork 36
Fix: Add proper TypeScript path aliases for API imports #93
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyrefactorCode refactoring and cleanupCode refactoring and cleanup
Description
Problem
API imports use relative paths like ../../middleware/validation which are fragile and hard to read.
Context
Path aliases improve code readability and make refactoring easier.
Proposed Solution
Configure TypeScript path aliases:
// tsconfig.json
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}Then use: import { validateDeposit } from '@/middleware/validation'
Acceptance Criteria
- Path aliases configured in
tsconfig.json - Existing imports updated to use aliases
- Jest configured to resolve aliases
- Build still works
Technical Notes
- Files:
api/tsconfig.json,api/jest.config.js, all source files
Constraints
- Must work with both
tscandts-jest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyrefactorCode refactoring and cleanupCode refactoring and cleanup