-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.d.ts
49 lines (45 loc) · 926 Bytes
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export type {Weather, Location}
type Weather = {
location: Location,
current: WeatherMetaData
}
interface Location {
name: string,
region: string,
country: string,
lat: number,
lon: number,
tz_id: string,
localtime_epoch: string,
localtime: string
}
interface WeatherMetaData {
last_updated_epoch: number;
last_updated: string;
temp_c: number;
temp_f: number;
is_day: number;
condition: Condition;
wind_mph: number;
wind_kph: number;
wind_degree: number;
wind_dir: string;
pressure_mb: number;
pressure_in: number;
precip_mm: number;
precip_in: number;
humidity: number;
cloud: number;
feelslike_c: number;
feelslike_f: number;
vis_km: number;
vis_miles: number;
uv: number;
gust_mph: number;
gust_kph: number;
}
interface Condition {
text: string,
icon: string,
code: number
}