feat: train, news and weather
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user