[PR #6109] API: add missing TypeScript types #20693

Closed
opened 2026-04-14 21:42:48 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6109

State: closed
Merged: Yes


Summary

This PR adds missing TypeScript types to the API handlers and related code to improve type safety and developer experience.

Changes

  • Added proper TypeScript types to API handler definitions in api-handlers.ts
  • Updated API methods to use typed parameters and return values
  • Fixed type issues in API models and related components
  • Updated UI components to work with properly typed API responses
  • Added release notes for this maintenance improvement

Files Changed

  • packages/loot-core/src/types/api-handlers.ts - Added missing types for API handler parameters and return values
  • packages/api/methods.ts - Updated to use properly typed API handlers
  • packages/loot-core/src/server/api-models.ts - Type improvements
  • Various UI components updated to work with typed API responses

Testing

  • Type checking passes
  • Existing tests should continue to work as this is primarily a type-only change
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6109 **State:** closed **Merged:** Yes --- ## Summary This PR adds missing TypeScript types to the API handlers and related code to improve type safety and developer experience. ## Changes - Added proper TypeScript types to API handler definitions in `api-handlers.ts` - Updated API methods to use typed parameters and return values - Fixed type issues in API models and related components - Updated UI components to work with properly typed API responses - Added release notes for this maintenance improvement ## Files Changed - `packages/loot-core/src/types/api-handlers.ts` - Added missing types for API handler parameters and return values - `packages/api/methods.ts` - Updated to use properly typed API handlers - `packages/loot-core/src/server/api-models.ts` - Type improvements - Various UI components updated to work with typed API responses ## Testing - Type checking passes - Existing tests should continue to work as this is primarily a type-only change
GiteaMirror added the pull-request label 2026-04-14 21:42:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#20693