-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
64 lines (56 loc) · 1.05 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export interface DryItem {
id: string;
name: string;
amount: number;
percentage: number;
}
export interface WetItem {
id: string;
name: string;
amount: number;
percentage: number;
waterAmount: number;
waterPercentage: number;
}
export interface Leaven {
flourItems: Array<DryItem>;
flourTotal: number;
flourLeft: number;
water: number;
sourdough: number;
}
export interface WaterData {
total: number;
percentage: number;
left: number;
}
export interface FlourData {
total: number;
left: number;
}
export interface SaltData {
total: number;
percentage: number;
left: number;
}
/* Recipe storage related interfaces */
interface RecipeFlourItem {
name: string;
percentage: number;
}
interface RecipeLeaven {
totalFlourPercentage: number;
flourItems: Array<RecipeFlourItem>;
water: number;
sourdough: number;
}
export interface Recipe {
name: string;
description?: string;
kind: string;
flourWeight: number;
flourItems: Array<RecipeFlourItem>;
water: number;
salt: number;
leaven: RecipeLeaven;
}