UNPKG
@vim-crouwel/cfpc
Version:
latest (1.0.1)
1.0.1
1.0.0
TypeScript library for calculating CO2 emissions from food, energy, and transportation
@vim-crouwel/cfpc
/
dist
/
types
/
food.d.ts
11 lines
(10 loc)
•
203 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
type
FoodItem
= {
co2_per_kg
:
number
;
source
:
string
; };
export
type
FoodGroup
= { [
foodName
:
string
]:
FoodItem
; };
export
type
FoodCategory
= { [
groupName
:
string
]:
FoodGroup
; };