initial commit
This commit is contained in:
18
src/cookbook/type.ts
Normal file
18
src/cookbook/type.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
type Ingredient = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
type Recipe = {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
image: string;
|
||||
ingredients: IngredientEntry[];
|
||||
};
|
||||
|
||||
type IngredientEntry = {
|
||||
idIngredient: number;
|
||||
idRecipe: number;
|
||||
quantity: number;
|
||||
};
|
Reference in New Issue
Block a user