remove "optional" from entity type

This commit is contained in:
2025-04-29 16:19:41 -07:00
parent 570ab8a178
commit ee4b11a308
3 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import { ICoordinates, IEntityWithId, IEntityWithOptionalTimestamp } from "./SharedEntities";
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
export interface IParkingStructure extends IEntityWithOptionalTimestamp, IEntityWithId {
export interface IParkingStructure extends IEntityWithTimestamp, IEntityWithId {
address: string;
capacity: number;
spotsAvailable: number;

View File

@@ -1,4 +1,4 @@
export interface IEntityWithOptionalTimestamp {
export interface IEntityWithTimestamp {
updatedTimeMs: number;
}

View File

@@ -1,19 +1,19 @@
import { ICoordinates, IEntityWithId, IEntityWithOptionalTimestamp } from "./SharedEntities";
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
export interface IRoute extends IEntityWithId, IEntityWithOptionalTimestamp {
export interface IRoute extends IEntityWithId, IEntityWithTimestamp {
name: string;
color: string;
polylineCoordinates: ICoordinates[];
systemId: string;
}
export interface IStop extends IEntityWithId, IEntityWithOptionalTimestamp {
export interface IStop extends IEntityWithId, IEntityWithTimestamp {
name: string;
systemId: string;
coordinates: ICoordinates;
}
export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
export interface IShuttle extends IEntityWithId, IEntityWithTimestamp {
coordinates: ICoordinates;
name: string;
routeId: string;
@@ -21,14 +21,14 @@ export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
orientationInDegrees: number;
}
export interface IEta extends IEntityWithOptionalTimestamp {
export interface IEta extends IEntityWithTimestamp {
secondsRemaining: number;
shuttleId: string;
stopId: string;
systemId: string;
}
export interface IOrderedStop extends IEntityWithOptionalTimestamp {
export interface IOrderedStop extends IEntityWithTimestamp {
nextStop?: IOrderedStop;
previousStop?: IOrderedStop;
routeId: string;