Add types for regression library

This commit is contained in:
2019-10-07 20:01:46 -04:00
parent f740ab06b9
commit 130bd18ae6
3 changed files with 8 additions and 2 deletions

View File

@@ -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);
});