use for-of statements to replace for and for-in

This commit is contained in:
MaysWind
2025-09-09 23:48:42 +08:00
parent c75a902d84
commit 34c5a1750e
50 changed files with 368 additions and 460 deletions
+1 -1
View File
@@ -1284,5 +1284,5 @@ export const ALL_CURRENCIES: Record<string, CurrencyInfo> = {
};
export const DEFAULT_CURRENCY_SYMBOL: string = '¤';
export const DEFAULT_CURRENCY_CODE: string = ALL_CURRENCIES['USD'].code;
export const DEFAULT_CURRENCY_CODE: string = (ALL_CURRENCIES['USD'] as CurrencyInfo).code;
export const PARENT_ACCOUNT_CURRENCY_PLACEHOLDER: string = '---';
+2 -2
View File
@@ -161,7 +161,7 @@ export const ALL_ACCOUNT_ICONS: Record<string, IconInfo> = {
}
};
export const DEFAULT_ACCOUNT_ICON = ALL_ACCOUNT_ICONS[DEFAULT_ACCOUNT_ICON_ID];
export const DEFAULT_ACCOUNT_ICON: IconInfo = ALL_ACCOUNT_ICONS[DEFAULT_ACCOUNT_ICON_ID] as IconInfo;
export const DEFAULT_CATEGORY_ICON_ID = '1';
export const AUTOMATICALLY_CREATED_CATEGORY_ICON_ID = '561';
@@ -837,4 +837,4 @@ export const ALL_CATEGORY_ICONS: Record<string, IconInfo> = {
}
};
export const DEFAULT_CATEGORY_ICON = ALL_CATEGORY_ICONS[DEFAULT_CATEGORY_ICON_ID];
export const DEFAULT_CATEGORY_ICON: IconInfo = ALL_CATEGORY_ICONS[DEFAULT_CATEGORY_ICON_ID] as IconInfo;