mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-21 09:35:40 -05:00
Add types for regression library
This commit is contained in:
@@ -34,10 +34,10 @@ export class PressureTrendComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
const points: Array<Array<number>> = [];
|
||||
const points: [number, number][] = [];
|
||||
|
||||
weatherData.forEach((weatherValue: WeatherValue) => {
|
||||
const point = [moment(weatherValue.timestamp).unix(), weatherValue.value / 100];
|
||||
const point: [number, number] = [moment(weatherValue.timestamp).unix(), weatherValue.value / 100];
|
||||
points.push(point);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user