From cde44ac55c61982c7b690cf851a7b6f73a891bbd Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 28 Apr 2022 00:32:43 +0200 Subject: [PATCH] Small improvements to the types --- Models/ThemeConfig/LayerConfig.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/ThemeConfig/LayerConfig.ts b/Models/ThemeConfig/LayerConfig.ts index 5d95d3cb2..ee9063cfa 100644 --- a/Models/ThemeConfig/LayerConfig.ts +++ b/Models/ThemeConfig/LayerConfig.ts @@ -27,7 +27,6 @@ import FilterConfigJson from "./Json/FilterConfigJson"; import {And} from "../../Logic/Tags/And"; import {Overpass} from "../../Logic/Osm/Overpass"; import Constants from "../Constants"; -import undefinedError = Mocha.utils.undefinedError; export default class LayerConfig extends WithContextLoader { @@ -338,11 +337,12 @@ export default class LayerConfig extends WithContextLoader { return TagUtils.changeAsProperties(this.source.osmTags.asChange({id: "node/-1"})) } - public GenerateDocumentation(usedInThemes: string[], layerIsNeededBy: Map, dependencies: { + public GenerateDocumentation(usedInThemes: string[], layerIsNeededBy?: Map, dependencies: { context?: string; reason: string; neededLayer: string; - }[], addedByDefault = false, canBeIncluded = true): BaseUIElement { + }[] = [] + , addedByDefault = false, canBeIncluded = true): BaseUIElement { const extraProps = [] extraProps.push("This layer is shown at zoomlevel **"+this.minzoom+"** and higher")