forked from MapComplete/MapComplete
Fix import flow, add typing
This commit is contained in:
parent
97334fc369
commit
4246221e8e
29 changed files with 396 additions and 309 deletions
4
Utils.ts
4
Utils.ts
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue