-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
50 lines (49 loc) · 1.12 KB
/
global.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
declare namespace Stats {
type SummaryDelta = {
hospital_obs: number;
home_obs: number;
total_obs: number;
hospital_today: number;
confirmed: number;
recovered: number;
deceased: number;
active: number;
};
type Districts = {
Alappuzha: SummaryDelta;
Ernakulam: SummaryDelta;
Idukki: SummaryDelta;
Kannur: SummaryDelta;
Kasargod: SummaryDelta;
Kollam: SummaryDelta;
Kottayam: SummaryDelta;
Kozhikode: SummaryDelta;
Malappuram: SummaryDelta;
Palakkad: SummaryDelta;
Pathanamthitta: SummaryDelta;
Thiruvananthapuram: SummaryDelta;
Thrissur: SummaryDelta;
Wayanad: SummaryDelta;
};
type DistrictHistory = {
summary: Districts;
delta: Districts;
date: string;
};
type SummaryHistory = {
summary: SummaryDelta;
delta: SummaryDelta;
date: string;
};
type HistoriesJSON = {
histories: DistrictHistory[];
last_updated: string;
};
type Histories = SummaryHistory[];
type DistrictHistories = DistrictHistory[];
type DistrictSummary = {
summary: Districts;
delta: Districts;
last_updated: string;
};
}