mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
make cache properties optional for ease of testing
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { GetterRepository } from "./GetterRepository";
|
||||
import { IEta, IOrderedStop, IRoute } from "../entities/entities";
|
||||
import { IEta, IOrderedStop, IRoute, IStop } from "../entities/entities";
|
||||
|
||||
export interface ApiBasedRepositoryCache {
|
||||
etasForShuttleId: {
|
||||
etasForShuttleId?: {
|
||||
[shuttleId: string]: IEta[],
|
||||
},
|
||||
etasForStopId: {
|
||||
etasForStopId?: {
|
||||
[stopId: string]: IEta[],
|
||||
},
|
||||
// To speed things up, implement caches for other data later
|
||||
|
||||
Reference in New Issue
Block a user