diff --git a/Models/ThemeConfig/LayerConfig.ts b/Models/ThemeConfig/LayerConfig.ts index 5d95d3cb2c..ee9063cfa9 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")