-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product structure refactor #5
Labels
documentation
Improvements or additions to documentation
Comments
How user can measure macro if he knows only weight in grams (not |
Use unit converter? https://github.com/ben-ng/convert-units |
type Product = {
macro: {
carbs: number
prots: number
fats: number
kcal: number
unit: 'g' | 'ml'
productId: number
}[]
} |
type Product = {
macro: {
carbs: number
prots: number
fats: number
kcal: number
unit: 'g' | 'ml'
productId: number
}[]
mealProduct: {
quantity: number
unit: 'g' | 'ml'
}
portions: [
{
value: 150
name: 'glass'
unit: 'ml'
}
]
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example macro data:

Proposal structure based on this data:
The text was updated successfully, but these errors were encountered: