add method stubs for subscribing/unsubscribing to changes

This commit is contained in:
2025-02-02 12:49:41 -08:00
parent 390d524b58
commit acfc91d3c1

View File

@@ -16,8 +16,9 @@ export interface GetterRepository {
getEtasForShuttleId(shuttleId: string): Promise<IEta[]>;
getEtasForStopId(stopId: string): Promise<IEta[]>;
getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null>;
subscribeToEtaChanges(listener: (eta: IEta) => void): Promise<void>;
unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise<void>;
getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise<IOrderedStop | null>;
@@ -34,4 +35,4 @@ export interface GetterRepository {
* @param routeId
*/
getOrderedStopsByRouteId(routeId: string): Promise<IOrderedStop[]>;
}
}