-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
160 lines (150 loc) · 3.03 KB
/
index.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
type CanadaProperties = {
YYYY_LOCAL: number;
MM_LOCAL: number;
DD_LOCAL: number;
HHMM_LOCAL: number;
NEAR_CMMTY: string;
PROVINCE: string;
FUJITA: number;
START_LAT_: number;
START_LON_: number;
END_LAT_N: number;
END_LON_W: number;
LENGTH_M: number;
MOTION_DEG: number;
WIDTH_MAX_: number;
HUMAN_FATA: number;
HUMAN_INJ: number;
ANIMAL_FAT: number;
ANIMAL_INJ: number;
DMG_THOUS: number;
FORECAST_R: string;
};
type CanadaEvents = {
properties: CanadaProperties;
};
type CanadaTracks = {
geometry: {
coordinates: Common.Coordinates[];
};
properties: CanadaProperties;
};
type CanadaNTPProperties = {
X: string;
Y: string;
objectid: string;
globalid: string;
_date: string;
Year: string;
event_name: string;
classification_status: string;
rating_status: string;
event_type: string;
initial_data_sources: string;
location_description: string;
province: string;
surveys_completed: string;
damage: string;
investigation_initiated_by_ntp: string;
ground_survey_completed_indepen: string;
event_description: string;
web_map_link: string;
CreationDate: string;
Creator: string;
EditDate: string;
Editor: string;
event_subtype: string;
damage_summary: string;
track_length: string;
max_path_width: string;
max_wind_speed: string;
time: string;
parent_storm_type: string;
EFDOD: string;
injuries: string;
concurrent: string;
uniqueID: string;
mean_motion_from: string;
day: string;
month: string;
timeUTC: string;
timezone: string;
fatalities_text: string;
damage_cost_text: string;
};
type UnitedStatesProperties = {
om: string;
yr: string;
mo: string;
dy: string;
date: string;
time: string;
tz: string;
st: string;
stf: string;
stn: string;
mag: string;
inj: string;
fat: string;
loss: string;
closs: string;
slat: string;
slon: string;
elat: string;
elon: string;
len: string;
wid: string;
ns: string;
sn: string;
sg: string;
f1: string;
f2: string;
f3: string;
f4: string;
fc: string;
};
type TornadoId = string;
type RawTornado = {
id: TornadoId;
coordinates_start: Common.Coordinates;
coordinates_end: [number | null, number | null];
date: string;
fujita: number;
country_code: string;
region_code: string;
};
type TupleTornado = [
TornadoId,
Common.Coordinates,
[number?, number?],
string,
number,
string,
string
];
type Tornado = Omit<RawTornado, "date"> & {
date: Date;
length_m: number | undefined;
};
type TornadoMatrix = {
columns: Array<{
rows: Array<{
bounds?: L.LatLngBounds;
density?: number;
tornados: Map<TornadoId, Tornado>;
}>;
}>;
count: number;
density: {
min: number;
max: number;
};
};
declare module Common {
type Bounds = [Coordinates, Coordinates];
type Coordinates = [number, number];
type ListState = "collapsed" | "expanded";
type Order = "ascending" | "descending";
type Status = "idle" | "loading" | "ready" | "error";
type SortProperty = "date" | "distance" | "fujita" | "region_code";
}