26 lines
413 B
TypeScript
26 lines
413 B
TypeScript
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;
|
|
title: string;
|
|
mainImage: ImageView;
|
|
text: string;
|
|
}
|
|
|
|
export interface ImageView {
|
|
alt: string;
|
|
url: string;
|
|
}
|