|
@@ -43,15 +43,17 @@ export class Recipe {
|
|
|
tags!: string[];
|
|
tags!: string[];
|
|
|
ingredients!: ComposedIngredients[];
|
|
ingredients!: ComposedIngredients[];
|
|
|
details!: RecipeDetails;
|
|
details!: RecipeDetails;
|
|
|
- directions!: string[];
|
|
|
|
|
|
|
+ instructions!: string[];
|
|
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
name: string,
|
|
name: string,
|
|
|
details?: RecipeDetails,
|
|
details?: RecipeDetails,
|
|
|
- ingredients?: ComposedIngredients[]
|
|
|
|
|
|
|
+ ingredients?: ComposedIngredients[],
|
|
|
|
|
+ instructions?: string[],
|
|
|
) {
|
|
) {
|
|
|
this.name = name;
|
|
this.name = name;
|
|
|
this.details = details || new RecipeDetails();
|
|
this.details = details || new RecipeDetails();
|
|
|
this.ingredients = ingredients || [];
|
|
this.ingredients = ingredients || [];
|
|
|
|
|
+ this.instructions = instructions || [];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|