Small improvements to the types

This commit is contained in:
Pieter Vander Vennet 2022-04-28 00:32:43 +02:00
parent 9f5c506e17
commit cde44ac55c

View file

@ -27,7 +27,6 @@ import FilterConfigJson from "./Json/FilterConfigJson";
import {And} from "../../Logic/Tags/And"; import {And} from "../../Logic/Tags/And";
import {Overpass} from "../../Logic/Osm/Overpass"; import {Overpass} from "../../Logic/Osm/Overpass";
import Constants from "../Constants"; import Constants from "../Constants";
import undefinedError = Mocha.utils.undefinedError;
export default class LayerConfig extends WithContextLoader { 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"})) return TagUtils.changeAsProperties(this.source.osmTags.asChange({id: "node/-1"}))
} }
public GenerateDocumentation(usedInThemes: string[], layerIsNeededBy: Map<string, string[]>, dependencies: { public GenerateDocumentation(usedInThemes: string[], layerIsNeededBy?: Map<string, string[]>, dependencies: {
context?: string; context?: string;
reason: string; reason: string;
neededLayer: string; neededLayer: string;
}[], addedByDefault = false, canBeIncluded = true): BaseUIElement { }[] = []
, addedByDefault = false, canBeIncluded = true): BaseUIElement {
const extraProps = [] const extraProps = []
extraProps.push("This layer is shown at zoomlevel **"+this.minzoom+"** and higher") extraProps.push("This layer is shown at zoomlevel **"+this.minzoom+"** and higher")