PassioIngredient

AttributeDescription

name

The name of the ingredient.

id

The unique identifier of the ingredient.

iconId

The identifier of the icon associated with the ingredient.

weight

The weight of the ingredient.

referenceNutrients

The reference nutrients of the ingredient.

nutrients

The nutrients of the ingredient.

metadata

The metadata associated with the ingredient.

amount

The amount of the ingredient.

import type { PassioID, UnitMass } from '..'
import type { PassioFoodAmount } from './PassioFoodAmount'
import type { PassioFoodMetadata } from './PassioFoodMetadata'
import type { PassioNutrients } from './PassioNutrients'

export interface PassioIngredient {
  /** The name of the ingredient. */
  name: string
  /** The unique identifier of the ingredient. */
  id: PassioID
  /** The identifier of the icon associated with the ingredient. */
  iconId: PassioID | string
  /** The weight of the ingredient. */
  weight?: UnitMass
  /** The reference nutrients of the ingredient. */
  referenceNutrients?: PassioNutrients
  /** The nutrients of the ingredient. */
  nutrients?: PassioNutrients
  /** The metadata associated with the ingredient. */
  metadata?: PassioFoodMetadata
  /** The amount of the ingredient. */
  amount?: PassioFoodAmount
}

Last updated