53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
export interface RawForecastSeries {
|
|
time?: unknown;
|
|
temperature_2m?: unknown;
|
|
apparent_temperature?: unknown;
|
|
precipitation_probability?: unknown;
|
|
precipitation?: unknown;
|
|
weather_code?: unknown;
|
|
wind_speed_10m?: unknown;
|
|
temperature_2m_max?: unknown;
|
|
temperature_2m_min?: unknown;
|
|
precipitation_probability_max?: unknown;
|
|
precipitation_sum?: unknown;
|
|
sunrise?: unknown;
|
|
sunset?: unknown;
|
|
}
|
|
|
|
export interface RawWeatherForecast {
|
|
latitude?: unknown;
|
|
longitude?: unknown;
|
|
timezone?: unknown;
|
|
hourly?: RawForecastSeries;
|
|
daily?: RawForecastSeries;
|
|
}
|
|
|
|
export interface HourlyForecast {
|
|
time: string;
|
|
temperature: number | null;
|
|
feelsLike: number | null;
|
|
precipitationProbability: number | null;
|
|
precipitation: number | null;
|
|
weatherCode: number | null;
|
|
windSpeed: number | null;
|
|
}
|
|
|
|
export interface DailyForecast {
|
|
date: string;
|
|
temperatureMax: number | null;
|
|
temperatureMin: number | null;
|
|
precipitationProbability: number | null;
|
|
precipitation: number | null;
|
|
weatherCode: number | null;
|
|
sunrise: string | null;
|
|
sunset: string | null;
|
|
}
|
|
|
|
export interface WeatherForecast {
|
|
latitude: number;
|
|
longitude: number;
|
|
timezone: string;
|
|
hourly: HourlyForecast[];
|
|
daily: DailyForecast[];
|
|
}
|