Refactoring: change order of parameters and remove parameter for Conversion.ts

This commit is contained in:
Pieter Vander Vennet 2025-05-16 15:48:55 +02:00
parent 49fc8e4bcf
commit 72e06448fc
20 changed files with 147 additions and 213 deletions

View file

@ -11,9 +11,8 @@ export class UpdateLegacyLayer extends DesugaringStep<
> {
constructor() {
super(
"UpdateLegacyLayer",
"Updates various attributes from the old data format to the new to provide backwards compatibility with the formats",
["overpassTags", "source.osmtags", "tagRenderings[*].id", "mapRendering"],
"UpdateLegacyLayer"
)
}
@ -259,7 +258,7 @@ export class UpdateLegacyLayer extends DesugaringStep<
class UpdateLegacyTheme extends DesugaringStep<ThemeConfigJson> {
constructor() {
super("Small fixes in the theme config", ["roamingRenderings"], "UpdateLegacyTheme")
super("UpdateLegacyTheme", "Small fixes in the theme config")
}
convert(json: ThemeConfigJson, context: ConversionContext): ThemeConfigJson {