-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
79 lines (75 loc) · 1.8 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
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
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
}