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
This commit is contained in:
26
dist/models/user.model.d.ts
vendored
Normal file
26
dist/models/user.model.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Model } from 'sequelize-typescript';
|
||||
import { Meal } from './meal.model';
|
||||
import { WeightLog } from './weight-log.model';
|
||||
import { WaterLog } from './water-log.model';
|
||||
import { MealPlan } from './meal-plan.model';
|
||||
import { UserGoal } from './user-goal.model';
|
||||
import { DailySummary } from './daily-summary.model';
|
||||
export declare class User extends Model {
|
||||
username: string;
|
||||
password: string;
|
||||
name: string;
|
||||
age: number;
|
||||
gender: string;
|
||||
height_cm: number;
|
||||
weight_kg: number;
|
||||
activity_level: string;
|
||||
target_daily_calories: number;
|
||||
meals: Meal[];
|
||||
weightLogs: WeightLog[];
|
||||
waterLogs: WaterLog[];
|
||||
mealPlans: MealPlan[];
|
||||
goal: UserGoal;
|
||||
dailySummaries: DailySummary[];
|
||||
validPassword(password: string): boolean;
|
||||
static hashPassword(user: User): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user