From c4ab74ed0a1b32efb1aa0b1829682be925d20961 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 27 Apr 2026 09:37:52 +0800 Subject: [PATCH] 1 --- frontend/src/lib/types.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/types.ts b/frontend/src/lib/types.ts index 14686e5..8034d57 100644 --- a/frontend/src/lib/types.ts +++ b/frontend/src/lib/types.ts @@ -259,10 +259,15 @@ export interface FundRecord { updated_at: string; } +export interface FundCategoryAmount { + category: string; + amount: number; +} + export interface FundStatistics { total_income: number; total_expense: number; balance: number; - income_by_category: Record; - expense_by_category: Record; + income_by_category: FundCategoryAmount[]; + expense_by_category: FundCategoryAmount[]; }