Type Alias: UpdateRecipeDtoPayload
@arolariu/website / types/invoices/Recipe / UpdateRecipeDtoPayload
Type Alias: UpdateRecipeDtoPayload
UpdateRecipeDtoPayload =
Partial<Recipe>
Defined in: types/invoices/Recipe.ts:193
DTO payload for updating an existing recipe.
Remarks
Partial Updates: Only provided fields are updated. AI-generated recipes are typically read-only, but user-created recipes can be modified.
Use Cases:
- Correcting AI-generated recipe details
- Updating cooking times based on user experience
- Adding personal notes to instructions
Example
const updatePayload: UpdateRecipeDtoPayload = {
cookingTime: 20, // Adjusted from experience
instructions: "Updated instructions with my modifications..."
};
See
Recipe for the entity structure
// was this page useful?