Add a helper method for setting the "reference time" of the self-updating repo

This commit is contained in:
2025-11-11 19:34:05 -08:00
parent e8f4e7b9ee
commit 4b37f3a121
3 changed files with 58 additions and 5 deletions

View File

@@ -18,4 +18,11 @@ export interface SelfUpdatingETARepository extends ETAGetterRepository {
identifier: ShuttleTravelTimeDataIdentifier,
dateFilter: ShuttleTravelTimeDateFilterArguments
): Promise<number | undefined>;
/**
* Set the "current time" as the class knows it, in order to calculate
* ETAs based on past data.
* @param referenceTime
*/
setReferenceTime(referenceTime: Date): void;
}