recipes.ts 473 B

123456789101112131415161718192021222324252627
  1. export interface IIngredient {
  2. name: string,
  3. quantity: number,
  4. unit: string,
  5. _original: string,
  6. }
  7. export interface ISubRecipe {
  8. name: string,
  9. ingredients: IIngredient[]
  10. }
  11. export default interface IRecipe {
  12. _id: string,
  13. author: {
  14. name: string,
  15. },
  16. details: {
  17. preparationTime: string,
  18. cookingTime: string,
  19. servings: number
  20. },
  21. ingredients: ISubRecipe[],
  22. instructions: string[],
  23. name: string,
  24. summary: string,
  25. tags: string[],
  26. }