-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.d.ts
103 lines (89 loc) · 2.07 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
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
declare module "*.svg";
declare module "*.png";
declare module "*.jpg";
declare module "*.jpeg";
declare module "*.gif";
declare namespace Stats {
type SummaryOrDelta = {
hospitalObs: number;
homeObs: number;
totalObs: number;
hospitalToday: number;
confirmed: number;
recovered: number;
deceased: number;
active: number;
};
type DistrictSummaryOrDelta = {
Alappuzha: SummaryOrDelta;
Ernakulam: SummaryOrDelta;
Idukki: SummaryOrDelta;
Kannur: SummaryOrDelta;
Kasaragod: SummaryOrDelta;
Kollam: SummaryOrDelta;
Kottayam: SummaryOrDelta;
Kozhikode: SummaryOrDelta;
Malappuram: SummaryOrDelta;
Palakkad: SummaryOrDelta;
Pathanamthitta: SummaryOrDelta;
Thiruvananthapuram: SummaryOrDelta;
Thrissur: SummaryOrDelta;
Wayanad: SummaryOrDelta;
};
type DistrictHistory = {
summary: DistrictSummaryOrDelta;
delta: DistrictSummaryOrDelta;
date: string;
};
type History = {
summary: SummaryOrDelta;
delta: SummaryOrDelta;
date: string;
};
type HistoriesJSON = {
histories: DistrictHistory[];
lastUpdated: string;
};
type DistrictHistories = DistrictHistory[];
type Histories = History[];
type Hotspot = {
district: string;
lsgd: string;
wards: string;
};
type HotspotHistory = {
hotspots: Hotspot[];
date: string;
};
type HotspotHistoriesJSON = {
histories: HotspotHistory[];
lastUpdated: string;
};
type HotspotHistories = HotspotHistory[];
type HotspotSummaries = {
date: string;
total: number;
alappuzha: number;
ernakulam: number;
idukki: number;
kannur: number;
kasaragod: number;
kollam: number;
kottayam: number;
kozhikode: number;
malappuram: number;
palakkad: number;
pathanamthitta: number;
thiruvananthapuram: number;
thrissur: number;
wayanad: number;
}[];
type TestReportHistory = {
date: string;
total: number;
positive: number;
today: number;
todayPositive: number;
};
type TestReportHistories = TestReportHistory[];
}