hk-bus-eta 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,6 +7,12 @@ export type Terminal = {
|
|
|
7
7
|
|
|
8
8
|
export type FreqId = "31" | "287" | "415" | "63" | "319" | "447" | "416" | "480" | "266" | "271" | "272" | "288" | "320" | "448" | "511"
|
|
9
9
|
|
|
10
|
+
export type Freq = {
|
|
11
|
+
[key in FreqId]: {
|
|
12
|
+
[startTime: string]: [string, string] | null
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export type RouteListEntry = {
|
|
11
17
|
readonly route: string,
|
|
12
18
|
readonly co: Company[],
|
|
@@ -14,11 +20,7 @@ export type RouteListEntry = {
|
|
|
14
20
|
readonly dest: Terminal,
|
|
15
21
|
readonly fares: string[] | null,
|
|
16
22
|
readonly faresHoliday: string[] | null,
|
|
17
|
-
readonly freq:
|
|
18
|
-
[key in FreqId]: {
|
|
19
|
-
[startTime: string]: string[]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
23
|
+
readonly freq: Freq | null,
|
|
22
24
|
readonly seq: number,
|
|
23
25
|
readonly serviceType: string,
|
|
24
26
|
readonly stops: {
|
|
@@ -52,6 +54,7 @@ export type StopList = Record<string, StopListEntry>
|
|
|
52
54
|
export type StopMap = Record<string, StopTuple[]>
|
|
53
55
|
|
|
54
56
|
export type BusDb = {
|
|
57
|
+
holidays: string[],
|
|
55
58
|
routeList: RouteList,
|
|
56
59
|
stopList: StopList,
|
|
57
60
|
stopMap: StopMap
|