homepage/src/types/types.ts

60 lines
975 B
TypeScript
Raw Normal View History

2023-06-19 00:32:51 +02:00
export type RecipeModelType = {
_id: string;
short_name: string;
name: string;
category: string;
icon: string;
dateCreated: Date;
dateModified: Date;
images?: [{
mediapath: string;
alt: string;
caption?: string
}];
description: string;
tags: [string];
season: [number];
baking?: {
temperature: string;
length: string;
mode: string;
}
preparation?: string;
fermentation?:{
bulk: string;
final: string
}
portions?: string;
total_time?: string;
ingredients?: [{
name?: string;
list: [{
name: string;
unit: string;
amount: number;
}]
}]
instructions?: [{
name?: string;
steps: [string]
}]
};
export type BriefRecipeType = {
_id: string;
short_name: string;
name: string;
category: string;
icon: string;
dateCreated: Date;
dateModified: Date;
images?: [{
mediapath: string;
alt: string;
caption?: string;
}]
description: string;
tags: [string];
season: [number];
}