homepage/src/types/types.ts
2023-06-27 19:01:06 +02:00

63 lines
1.0 KiB
TypeScript

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;
cooking?: string;
total_time?: string;
ingredients?: [{
name?: string;
list: [{
name: string;
unit: string;
amount: string;
}]
}]
instructions?: [{
name?: string;
steps: [string]
}]
preamble?: String
addendum?: 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];
}