-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmod.d.ts
63 lines (58 loc) · 1.23 KB
/
mod.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
declare namespace Yr {
interface IWeather {
type: string;
geometry: {
type: string;
coordinates: Array<number>;
};
properties: {
meta: {
updated_at: Date;
units: IUnits;
};
timeseries: Array<ITimeseries>;
};
}
interface IUnits {
air_pressure_at_sea_level: string;
air_temperature: string;
cloud_area_fraction: string;
precipitation_amount: string;
relative_humidity: string;
wind_from_direction: string;
wind_speed: string;
}
interface ITimeseries {
time: string;
data: {
instant: {
details: {
air_pressure_at_sea_level: number;
air_temperature: number;
cloud_area_fraction: number;
relative_humidity: number;
wind_from_direction: number;
wind_speed: number;
};
};
next_12_hours: INextHour;
next_1_hours: Required<INextHour>;
next_6_hours: Required<INextHour>;
};
}
interface INextHour {
summary: {
symbol_code: string;
};
details?: {
precipitation_amount: number;
};
}
interface IWeatherSymbols {
[key: string]: string;
}
}
declare interface Coordinates {
lng: number;
lat: number;
}