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:
@@ -1,3 +1,5 @@
|
||||
import type { WeatherRegion } from "@/types/weather-region";
|
||||
|
||||
export interface LocationSearchResult {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -5,22 +7,40 @@ export interface LocationSearchResult {
|
||||
longitude: number;
|
||||
province: string | null;
|
||||
district: string | null;
|
||||
country: string | null;
|
||||
countryCode: string | null;
|
||||
admin1: string | null;
|
||||
admin2: string | null;
|
||||
timezone: string | null;
|
||||
region: WeatherRegion;
|
||||
}
|
||||
|
||||
export interface ReverseLocationResult {
|
||||
name: string;
|
||||
province: string | null;
|
||||
district: string | null;
|
||||
country: string | null;
|
||||
countryCode: string | null;
|
||||
admin1: string | null;
|
||||
admin2: string | null;
|
||||
timezone: string | null;
|
||||
region: WeatherRegion;
|
||||
}
|
||||
|
||||
export interface SelectedLocation {
|
||||
name: string;
|
||||
province: string | null;
|
||||
district: string | null;
|
||||
country: string | null;
|
||||
countryCode: string | null;
|
||||
admin1: string | null;
|
||||
admin2: string | null;
|
||||
timezone: string | null;
|
||||
region: WeatherRegion;
|
||||
countyTeryt: string | null;
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
stationId: string;
|
||||
stationName: string;
|
||||
distanceKm: number;
|
||||
stationId: string | null;
|
||||
stationName: string | null;
|
||||
distanceKm: number | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user