Fix typing error

This commit is contained in:
Pieter Vander Vennet 2024-07-09 00:37:23 +02:00
parent 4166c4b863
commit b55b3d3ed9

View file

@ -27,6 +27,7 @@ import { ConversionContext } from "./ConversionContext"
import { AvailableRasterLayers } from "../../RasterLayers" import { AvailableRasterLayers } from "../../RasterLayers"
import PointRenderingConfigJson from "../Json/PointRenderingConfigJson" import PointRenderingConfigJson from "../Json/PointRenderingConfigJson"
import NameSuggestionIndex from "../../../Logic/Web/NameSuggestionIndex" import NameSuggestionIndex from "../../../Logic/Web/NameSuggestionIndex"
import { Tag } from "../../../Logic/Tags/Tag"
class ValidateLanguageCompleteness extends DesugaringStep<LayoutConfig> { class ValidateLanguageCompleteness extends DesugaringStep<LayoutConfig> {
private readonly _languages: string[] private readonly _languages: string[]
@ -1111,7 +1112,7 @@ class MiscTagRenderingChecks extends DesugaringStep<TagRenderingConfigJson> {
.enters("freeform", "type") .enters("freeform", "type")
.err( .err(
"No entry found in the 'Name Suggestion Index'. None of the 'osmSource'-tags match an entry in the NSI.\n\tOsmSource-tags are " + "No entry found in the 'Name Suggestion Index'. None of the 'osmSource'-tags match an entry in the NSI.\n\tOsmSource-tags are " +
tags.map((t) => t.asHumanString()).join(" ; ") tags.map((t) => new Tag(t.key, t.value).asHumanString()).join(" ; ")
) )
} }
} else if (json.freeform.type === "nsi") { } else if (json.freeform.type === "nsi") {