feat: train, news and weather

This commit is contained in:
Loic Coenen
2025-10-30 23:19:03 +01:00
parent 283b3e6885
commit b2a5031056
24 changed files with 796 additions and 41 deletions

View File

@@ -1,9 +1,17 @@
import type { Station } from "../types";
import type { Article } from "../types/article";
import type { LiveBoard } from "../types/liveboard";
import type { WeatherData } from "../types/weather";
export type State = {
loading: boolean,
stations: Station[] | undefined,
error: Error | undefined,
trainScheduleLoading: boolean,
liveboard: LiveBoard | undefined,
trainScheduleError: Error | undefined,
weather: WeatherData | undefined,
weatherLoading: boolean,
weatherError: Error | undefined,
news: Article[] | undefined,
newsLoading: boolean,
newsError: Error | undefined,
}