Files
calorie_tracker_2/dist/meals/meals.controller.d.ts
Jp f521970a65 build: add TypeScript configuration and generate declaration files
- Add tsconfig.json for TypeScript compilation with declaration and source map generation
- Generate .d.ts declaration files for all modules, services, controllers, and models
- Update package.json with NestJS dependencies and TypeScript development tools
- Include database files in the distribution output for persistence
2026-01-31 09:00:26 +08:00

33 lines
1.3 KiB
TypeScript

import { Response } from 'express';
import { UtilsService } from '../utils/utils.service';
import { NutritionService } from './nutrition.service';
import { Meal } from '../models/meal.model';
import { MealFood } from '../models/meal-food.model';
import { FoodItem } from '../models/food-item.model';
import { WaterLog } from '../models/water-log.model';
import { WeightLog } from '../models/weight-log.model';
export declare class MealsController {
private utilsService;
private nutritionService;
private mealModel;
private mealFoodModel;
private foodItemModel;
private waterLogModel;
private weightLogModel;
constructor(utilsService: UtilsService, nutritionService: NutritionService, mealModel: typeof Meal, mealFoodModel: typeof MealFood, foodItemModel: typeof FoodItem, waterLogModel: typeof WaterLog, weightLogModel: typeof WeightLog);
addMealPage(req: any, res: Response): void;
addMeal(req: any, res: Response, body: any): Promise<void>;
searchFood(query: string): Promise<any[]>;
addFood(body: any): Promise<{
success: boolean;
food_id: any;
name: string;
} | {
success: boolean;
food_id?: undefined;
name?: undefined;
}>;
addWater(req: any, res: Response, body: any): Promise<void>;
addWeight(req: any, res: Response, body: any): Promise<void>;
}