feat: add global weather support
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
This commit is contained in:
@@ -23,10 +23,11 @@ export interface RawImgwHybridWeatherResponse {
|
||||
}
|
||||
|
||||
export type CurrentWeatherCondition = "rain" | "snow" | "thunderstorm" | null;
|
||||
export type ImgwCurrentWeatherCoverage = "full" | "hourly" | "precipitation-only";
|
||||
export type ImgwCurrentWeatherCoverage = "full" | "hourly" | "precipitation-only" | "global-model";
|
||||
|
||||
export interface ImgwCurrentWeather {
|
||||
export interface ImgwCurrentWeather extends WeatherSourceMetadata {
|
||||
coverage: ImgwCurrentWeatherCoverage;
|
||||
region: WeatherRegion;
|
||||
measuredAt: string;
|
||||
temperature: number | null;
|
||||
feelsLike: number | null;
|
||||
@@ -41,3 +42,4 @@ export interface ImgwCurrentWeather {
|
||||
weatherCode: number | null;
|
||||
condition: CurrentWeatherCondition;
|
||||
}
|
||||
import type { WeatherRegion, WeatherSourceMetadata } from "@/types/weather-region";
|
||||
|
||||
Reference in New Issue
Block a user