renamed models, added mapper for recipes
This commit is contained in:
parent
7a6f5b5bcd
commit
8027fce80d
21 changed files with 164 additions and 61 deletions
12
frontend/src/models/ServingsModel.ts
Normal file
12
frontend/src/models/ServingsModel.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Defines how many servings of the dish are prepared when following the recipe
|
||||
*/
|
||||
|
||||
export interface ServingsModel{
|
||||
/** Amount of servings */
|
||||
amount: number,
|
||||
|
||||
/** Unit, e.g. 4 persons, 2 glasses, 12 cupcakes */
|
||||
unit: string
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue