Enhance RecipePreview and RecipesService with additional inventory item properties and conversion logic

This commit is contained in:
Nils-Johan Gynther
2026-04-09 22:09:19 +02:00
parent 4fd3c8dc20
commit 29910130f0
3 changed files with 41 additions and 18 deletions
+5 -3
View File
@@ -80,9 +80,11 @@ export type RecipePreviewInventoryItem = {
id: number;
quantity: string;
unit: string;
brand: string | null;
location: string | null;
bestBeforeDate: string | null;
brand?: string | null;
location?: string | null;
bestBeforeDate?: string | null;
canConvert?: boolean;
convertedQuantity?: number;
};
export type RecipeInventoryPreviewIngredient = {