Type Alias: RecipeComplexity
@arolariu/website / types/invoices/Recipe / RecipeComplexity
Type Alias: RecipeComplexity
RecipeComplexity = typeof
RecipeComplexity[keyof typeofRecipeComplexity]
Defined in: types/invoices/Recipe.ts:57
Indicates the difficulty level of preparing a recipe.
Remarks
Complexity helps users filter recipes matching their cooking skill. The rating considers number of steps, technique requirements, and estimated time commitment.
Level Definitions:
Easy(1): Simple preparation, basic techniques, <30 minNormal(2): Moderate skill, some cooking techniques, 30-60 minHard(3): Advanced techniques, multiple steps, >60 min
Filtering: Users can set maximum complexity in preferences to exclude recipes beyond their comfort level.
Example
const recipe: Recipe = {
complexity: RecipeComplexity.Easy,
// ... other properties
};
// Filter beginner-friendly recipes
const easyRecipes = recipes.filter(r => r.complexity <= RecipeComplexity.Easy);
See
Recipe for the complete recipe structure
// was this page useful?