FoodSearchResult

Interface representing the structure of a food search result

AttributeDescription

brandName

Property for the brand name of the food (optional).

foodName

Property for the name of the food.

iconID

Property for the icon ID of the food.

labelId

Property for the label ID of the food.

nutritionPreview

Property for the nutrition preview of the food (optional).

resultId

Property for the result ID of the food.

score

Property for the score of the food (optional).

scoredName

Property for the scored name of the food (optional).

type

Property for the type of the food (optional).

export interface FoodSearchResult {
  // Property for the brand name of the food
  brandName?: string
  // Property for the name of the food
  foodName: string
  // Property for the icon ID of the food
  iconID: PassioID | string
  // Property for the label ID of the food
  labelId: string
  // Property for the nutrition preview of the food
  nutritionPreview?: PassioSearchNutritionPreview
  // Property for the result ID of the food
  resultId: string
  // Property for the score of the food
  score?: number
  // Property for the scored name of the food
  scoredName?: string
  // Property for the type of the food
  type?: string
}

Last updated