Files
trainhour/src/state/state.ts
2025-10-30 23:19:03 +01:00

18 lines
472 B
TypeScript

import type { Article } from "../types/article";
import type { LiveBoard } from "../types/liveboard";
import type { WeatherData } from "../types/weather";
export type State = {
trainScheduleLoading: boolean,
liveboard: LiveBoard | undefined,
trainScheduleError: Error | undefined,
weather: WeatherData | undefined,
weatherLoading: boolean,
weatherError: Error | undefined,
news: Article[] | undefined,
newsLoading: boolean,
newsError: Error | undefined,
}