-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
81 lines (76 loc) · 1.86 KB
/
typings.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
interface CurrentWeather {
is_day: number,
temperature: number,
time: string,
weathercode: number,
winddirection: number,
windspeed: number
}
interface Daily {
apparent_temperature_max: [number],
apparent_temperature_min: [number],
sunrise: [string],
sunset: [string],
temperature_2m_max: [number],
temperature_2m_min: [number],
time: [string],
uv_index_clear_sky_max: [number],
uv_index_max: [number],
weathercode: [number]
}
interface DailyUnits {
apparent_temperature_max: string,
apparent_temperature_min: string,
sunrise: string,
sunset: string,
temperature_2m_max: string,
temperature_2m_min: string,
time: string,
uv_index_clear_sky_max: string,
uv_index_max: string,
weathercode: string
}
interface Hourly {
apparent_temperature: [number],
precipitation: [number],
precipitation_probability: [number],
rain: [number],
relativehumidity_2m: [number],
showers: [number],
snow_depth: [number],
snowfall: [number],
temperature_2m: [number],
time: [string],
uv_index: [number],
uv_index_clear_sky: [number],
windgusts_10m: [number]
}
interface HourlyUnits {
apparent_temperature: string,
precipitation: string,
precipitation_probability: string,
rain: string,
relativehumidity_2m: string,
showers: string,
snow_depth: string,
snowfall: string,
temperature_2m: string,
time: string,
uv_index: string,
uv_index_clear_sky: string,
windgusts_10m: string
}
interface Root {
current_weather: CurrentWeather,
daily: Daily,
daily_units: DailyUnits,
elevation: number,
generationtime_ms: number,
hourly: Hourly,
hourly_units: HourlyUnits,
latitude: number,
longitude: number,
timezone: string,
timezone_abbreviation: string,
utc_offset_seconds: number
}