meals-made-easy-app/src/app/shared/models/Recipe.model.ts
2026-01-28 18:17:31 -06:00

28 lines
548 B
TypeScript

import { ResourceOwner } from './ResourceOwner.model';
import { ImageView } from './ImageView.model';
export interface RecipeInfoViews {
slice: {
number: number;
size: number;
};
content: Recipe[];
}
export interface RecipeView {
isOwner: boolean | null;
isStarred: boolean | null;
recipe: Recipe;
}
export interface Recipe {
id: number;
isPublic: boolean;
mainImage?: ImageView | null;
owner: ResourceOwner;
slug: string;
starCount: number;
text: string;
title: string;
}