[PR #4207] [MERGED] [TypeScript] Add types to amount utils #5258

Closed
opened 2026-02-28 21:09:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4207
Author: @joel-jeremy
Created: 1/20/2025
Status: Merged
Merged: 1/21/2025
Merged by: @joel-jeremy

Base: masterHead: add-types-to-amount-utils


📝 Commits (2)

📊 Changes

6 files changed (+64 additions, -37 deletions)

View changed files

📝 packages/desktop-client/src/components/modals/ImportTransactionsModal/Transaction.tsx (+5 -5)
📝 packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx (+8 -6)
📝 packages/desktop-client/src/components/reports/graphs/BarGraph.tsx (+7 -7)
📝 packages/desktop-client/src/components/reports/reports/SpendingCard.tsx (+1 -1)
📝 packages/loot-core/src/shared/util.ts (+37 -18)
upcoming-release-notes/4207.md (+6 -0)

📄 Description

Add type to the the amount utils to clarify what's the difference between amount, integer amount, and currency.

The components that accept amounts need to be updated to use these types to make it clear which types of amounts they need, but that's for another PR.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/4207 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 1/20/2025 **Status:** ✅ Merged **Merged:** 1/21/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `add-types-to-amount-utils` --- ### 📝 Commits (2) - [`5dbb33f`](https://github.com/actualbudget/actual/commit/5dbb33feaa936fafe7127ffaf96b993198c746d5) Add types to amount utils - [`501e3db`](https://github.com/actualbudget/actual/commit/501e3db62ee952c3d1ff558eb64e61a7f5868685) Release notes ### 📊 Changes **6 files changed** (+64 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/modals/ImportTransactionsModal/Transaction.tsx` (+5 -5) 📝 `packages/desktop-client/src/components/reports/graphs/AreaGraph.tsx` (+8 -6) 📝 `packages/desktop-client/src/components/reports/graphs/BarGraph.tsx` (+7 -7) 📝 `packages/desktop-client/src/components/reports/reports/SpendingCard.tsx` (+1 -1) 📝 `packages/loot-core/src/shared/util.ts` (+37 -18) ➕ `upcoming-release-notes/4207.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Add type to the the amount utils to clarify what's the difference between amount, integer amount, and currency. The components that accept amounts need to be updated to use these types to make it clear which types of amounts they need, but that's for another PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:09:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5258