feat: added config

This commit is contained in:
Elias Renman
2023-06-17 13:17:40 +02:00
parent 668524832e
commit 05da42f29f
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
export type Configuration = {
timeout: number;
threshold: number;
moisture: Moisture;
};
export type Moisture = {
thresholds: Thresholds;
};
export type Thresholds = {
lower: { [key: string]: number };
upper: { [key: string]: number };
};