model.ts 363 B

12345678910111213141516171819202122232425262728293031
  1. export type Unit =
  2. 'cup' |
  3. 'gal' |
  4. 'oz' |
  5. 'pt' |
  6. 'lb' |
  7. 'qt' |
  8. 'tbsp' |
  9. 'tsp' |
  10. 'g' |
  11. 'kg' |
  12. 'l' |
  13. 'mg' |
  14. 'ml' |
  15. 'pkg' |
  16. 'sticks' |
  17. 'pinch' |
  18. 'to taste'
  19. ;
  20. export interface ShoppingItem {
  21. name: string,
  22. quantity: number,
  23. unit: Unit
  24. recipeIds: string[]
  25. }
  26. export interface ShoppingList {
  27. items: ShoppingItem[],
  28. date: Date
  29. }