🔧 Fix TypeScript Build Errors

 Fixed AdminDashboard sorting types:
- Changed aValue/bValue from unknown to string|number|Date

 Fixed Toast component:
- Removed setIsVisible reference (function doesn't exist)

 Fixed Prisma service types:
- Added type casting for createProject data
- Fixed InteractionType enum (VIEW → BOOKMARK)
- Added type casting for analytics/performance data

🎯 Build Status:  SUCCESS
- All TypeScript errors resolved
- Build completes successfully
- 22 routes generated
- Ready for production deployment
This commit is contained in:
Dennis Konkol
2025-09-05 22:48:33 +00:00
parent cc5396b5cb
commit b1d6bf08ba
3 changed files with 8 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ export default function AdminDashboard({ onProjectSelect, onNewProject }: AdminD
return matchesSearch && matchesCategory;
})
.sort((a, b) => {
let aValue: unknown, bValue: unknown;
let aValue: string | number | Date, bValue: string | number | Date;
switch (sortBy) {
case 'date':