make cache properties optional for ease of testing

This commit is contained in:
2025-01-07 15:55:03 -08:00
parent 37909c8dbb
commit 38c3362793

View File

@@ -1,11 +1,11 @@
import { GetterRepository } from "./GetterRepository"; import { GetterRepository } from "./GetterRepository";
import { IEta, IOrderedStop, IRoute } from "../entities/entities"; import { IEta, IOrderedStop, IRoute, IStop } from "../entities/entities";
export interface ApiBasedRepositoryCache { export interface ApiBasedRepositoryCache {
etasForShuttleId: { etasForShuttleId?: {
[shuttleId: string]: IEta[], [shuttleId: string]: IEta[],
}, },
etasForStopId: { etasForStopId?: {
[stopId: string]: IEta[], [stopId: string]: IEta[],
}, },
// To speed things up, implement caches for other data later // To speed things up, implement caches for other data later