mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
update interface to not be async
This commit is contained in:
@@ -27,14 +27,14 @@ export interface GetterRepository {
|
||||
*/
|
||||
subscribeToEtaChanges(
|
||||
listener: (eta: IEta) => void,
|
||||
): Promise<void>;
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Unsubscribe from all ETA updates for the given callback.
|
||||
* Callback must be passed by reference.
|
||||
* @param listener
|
||||
*/
|
||||
unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise<void>;
|
||||
unsubscribeFromEtaChanges(listener: (eta: IEta) => void): void;
|
||||
|
||||
getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise<IOrderedStop | null>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user