diff options
| author | Joe Carstairs <me@joeac.net> | 2024-12-12 08:26:53 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-12-12 08:26:53 +0000 |
| commit | 8a30bcbdf9264d235bf93da3df8e170cfde53d02 (patch) | |
| tree | 5f9b6fe956c72b89a89cc936ab86ec1bffc271f5 /gui/src/types/balanceMap.ts | |
| parent | 51711fb42a44b452cdf1b4fd6a716d0251f23dda (diff) | |
Removes web GUI
Diffstat (limited to 'gui/src/types/balanceMap.ts')
| -rw-r--r-- | gui/src/types/balanceMap.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gui/src/types/balanceMap.ts b/gui/src/types/balanceMap.ts deleted file mode 100644 index 760843f..0000000 --- a/gui/src/types/balanceMap.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Category } from "./category"; -import Currency from "./currency/currency"; -import { newGbpFromDto } from "./currency/gbp"; - -type BalanceMap<T extends { id: any }> = { - [id in T["id"]]: Currency; -}; - -function newCategoryBalanceMapFromDto(dto: unknown): BalanceMap<Category> { - return Object.fromEntries( - (dto as { category_id: Category["id"]; balance: number }[]).map( - ({ category_id, balance }) => [category_id, newGbpFromDto(balance)], - ), - ); -} - -export { type BalanceMap, newCategoryBalanceMapFromDto }; |
