export interface AlertFeature {
properties: {
event?: string;
areaDesc?: string;
severity?: string;
status?: string;
headline?: string;
};
}
export interface ForecastPeriod {
name?: string;
temperature?: number;
temperatureUnit?: string;
windSpeed?: string;
windDirection?: string;
shortForecast?: string;
}
export interface AlertsResponse {
features: AlertFeature[];
}
export interface PointsResponse {
properties: {
forecast?: string;
};
}
export interface ForecastResponse {
properties: {
periods: ForecastPeriod[];
};
}
export interface WeatherResponse {
location: {
name: string;
region: string;
country: string;
};
current: {
temp_c: number;
temp_f: number;
condition: {
text: string;
icon: string;
};
humidity: number;
wind_kph: number;
wind_mph: number;
feelslike_c: number;
feelslike_f: number;
};
}
export interface WeatherParams {
location: string;
}