Fix import flow, add typing

This commit is contained in:
Pieter Vander Vennet 2022-07-08 03:14:55 +02:00
parent 97334fc369
commit 4246221e8e
29 changed files with 396 additions and 309 deletions

View file

@ -284,7 +284,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
* @param useLang
* @constructor
*/
public static SubstituteKeys(txt: string | undefined, tags: any, useLang?: string): string | undefined {
public static SubstituteKeys(txt: string | undefined, tags?: any, useLang?: string): string | undefined {
if (txt === undefined) {
return undefined
}
@ -294,7 +294,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
while (match) {
const key = match[1]
let v = tags[key]
let v = tags === undefined ? undefined : tags[key]
if (v !== undefined) {
if (v["toISOString"] != undefined) {