feat: organize functions and add type to foods
This commit is contained in:
@@ -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: []
|
||||
};
|
||||
Reference in New Issue
Block a user