mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +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>;
|
||||
|
||||
|
||||
@@ -58,10 +58,10 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
||||
return this.etas.filter(eta => eta.stopId === stopId);
|
||||
}
|
||||
|
||||
public async subscribeToEtaChanges(listener: (eta: IEta) => void): Promise<void> {
|
||||
public subscribeToEtaChanges(listener: (eta: IEta) => void) {
|
||||
}
|
||||
|
||||
public async unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise<void> {
|
||||
public unsubscribeFromEtaChanges(listener: (eta: IEta) => void) {
|
||||
}
|
||||
|
||||
public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string) {
|
||||
|
||||
Reference in New Issue
Block a user