feat: organize functions and add type to foods

This commit is contained in:
2025-09-07 16:33:56 -03:00
parent 3b09e33b2d
commit f8f2c98d49
8 changed files with 224 additions and 244 deletions
+15
View File
@@ -0,0 +1,15 @@
import { DailyTotalCalories, FoodItem } from "./types";
interface AppState {
currentHighlightIndex: number;
searchTimeout: number | null;
searchResults: FoodItem[];
calendarMonthlyCalories: DailyTotalCalories[];
}
export const appState: AppState = {
currentHighlightIndex: -1,
searchTimeout: null,
searchResults: [],
calendarMonthlyCalories: []
};