Skip to content

Fix bus and commuter rail pages #2300

Fix bus and commuter rail pages

Fix bus and commuter rail pages #2300

Triggered via pull request February 19, 2025 00:52
Status Failure
Total duration 1m 10s
Artifacts

lint.yml

on: pull_request
Matrix: backend
Matrix: frontend
Fit to window
Zoom out
Zoom in

Annotations

10 errors
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L30
Type '{ order: number; start: string; end: string; id: string; from: Station | undefined; to: Station | undefined; title: string; delay: number; latest_delay: number | null; duration: number; color: "Red" | ... 4 more ... | "Commuter Rail"; direction: "northbound" | "southbound"; }[]' is not assignable to type 'SlowZone[]'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L34
Argument of type 'Station | undefined' is not assignable to parameter of type 'Station'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L36
'from' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L39
'from' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L39
'to' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L42
'from' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L42
'from' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L42
'to' is possibly 'undefined'.
frontend (20, 3.12): common/utils/slowZoneUtils.ts#L42
'to' is possibly 'undefined'.
frontend (20, 3.12): common/utils/stations.ts#L103
Type 'Station | undefined' is not assignable to type 'Station'.