Skip to content

fix(frontend): resolve TypeScript build errors with missing type definitions - #301

Merged
javi11 merged 1 commit into
mainfrom
fix/typescript-build-errors
Feb 17, 2026
Merged

fix(frontend): resolve TypeScript build errors with missing type definitions#301
javi11 merged 1 commit into
mainfrom
fix/typescript-build-errors

Conversation

@javi11

@javi11 javi11 commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixed TypeScript build errors related to missing type definitions
  • Added ImportHistoryItem interface for properly typing import history data
  • Added missing imports for QueueHistoricalStatsResponse and ImportHistoryItem
  • Updated getImportHistory method to return properly typed ImportHistoryItem[]
  • Fixed optional chaining in QueueHistoricalStatsCard for history.daily

Changes

  • src/types/api.ts: Added ImportHistoryItem interface with proper field types
  • src/api/client.ts: Added missing type imports and updated return type for getImportHistory
  • src/components/queue/QueueHistoricalStatsCard.tsx: Fixed optional chaining to handle undefined history

Test plan

  • bun run build passes successfully
  • bun run check passes with all type checks

🤖 Generated with Claude Code

…nitions

- Add ImportHistoryItem interface for import history data
- Add missing imports for QueueHistoricalStatsResponse and ImportHistoryItem
- Update getImportHistory to return properly typed ImportHistoryItem[]
- Fix optional chaining in QueueHistoricalStatsCard for history.daily

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@javi11
javi11 merged commit 2389a1d into main Feb 17, 2026
1 check passed
@javi11
javi11 deleted the fix/typescript-build-errors branch February 24, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant