From 0dcc20f20b23ff9b1ad64f269972088a625e7db6 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 21 Mar 2023 20:01:36 +0100 Subject: [PATCH] docs: improve typing --- Logic/Osm/OsmObject.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Logic/Osm/OsmObject.ts b/Logic/Osm/OsmObject.ts index 298277894..b9bff14ec 100644 --- a/Logic/Osm/OsmObject.ts +++ b/Logic/Osm/OsmObject.ts @@ -163,6 +163,11 @@ export abstract class OsmObject { }) } + public static DownloadHistory(id: NodeId): UIEventSource + public static DownloadHistory(id: WayId): UIEventSource + public static DownloadHistory(id: RelationId): UIEventSource + + public static DownloadHistory(id: OsmId): UIEventSource public static DownloadHistory(id: string): UIEventSource { if (OsmObject.historyCache.has(id)) { return OsmObject.historyCache.get(id) @@ -180,6 +185,7 @@ export abstract class OsmObject { const osmObjects: OsmObject[] = [] for (const element of elements) { let osmObject: OsmObject = null + element.nodes = [] switch (type) { case "node": osmObject = new OsmNode(idN)