split out shared entities into separate file

This commit is contained in:
2025-04-08 16:19:20 -07:00
parent 0ce0c54ddd
commit 6cd7d38bfd
2 changed files with 14 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
export interface IEntityWithOptionalTimestamp {
millisecondsSinceEpoch?: number;
}
export interface IEntityWithId {
id: string;
}
export interface ICoordinates {
latitude: number;
longitude: number;
}

View File

@@ -1,15 +1,4 @@
export interface IEntityWithOptionalTimestamp { import { ICoordinates, IEntityWithId, IEntityWithOptionalTimestamp } from "./SharedEntities";
millisecondsSinceEpoch?: number;
}
export interface IEntityWithId {
id: string;
}
export interface ICoordinates {
latitude: number;
longitude: number;
}
export interface IRoute extends IEntityWithId, IEntityWithOptionalTimestamp { export interface IRoute extends IEntityWithId, IEntityWithOptionalTimestamp {
name: string; name: string;