mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add method stubs for subscribing/unsubscribing to changes
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user