⚠️ This is pre-release documentation for v3. For stable docs, visit v2.
Skip to content

@tmlmt/cooklang-parser / PantryItem

Interface: PantryItem

Represents a parsed pantry item.

Properties

bought?

optional bought: Date

The date when the item was purchased.


expire?

optional expire: Date

The expiration date of the item.


location

location: string

The storage location (TOML section name, e.g. "freezer", "fridge").


low?

optional low: FixedValue | Range

The low stock threshold value.


lowUnit?

optional lowUnit: string

The unit of the low stock threshold.


name

name: string

The name of the item.


quantity?

optional quantity: FixedValue | Range

The quantity value of the item.


unit?

optional unit: string

The unit of the item's quantity.