From 452c1e87ca107349e4f95f5ea43279792e37f9f9 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 28 Feb 2022 20:58:12 +0100 Subject: [PATCH] Fix build --- Models/ThemeConfig/Conversion/FixImages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/ThemeConfig/Conversion/FixImages.ts b/Models/ThemeConfig/Conversion/FixImages.ts index 6da57f190..4a3e70e63 100644 --- a/Models/ThemeConfig/Conversion/FixImages.ts +++ b/Models/ThemeConfig/Conversion/FixImages.ts @@ -116,7 +116,7 @@ export class FixImages extends DesugaringStep { this._knownImages = knownImages; } - convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson, warnings?: [] } { + convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson, warnings?: string[] } { let url: URL; try { url = new URL(json.id) @@ -125,7 +125,7 @@ export class FixImages extends DesugaringStep { return {result: json} } - const warnings = [] + const warnings: string[] = [] const absolute = url.protocol + "//" + url.host let relative = url.protocol + "//" + url.host + url.pathname relative = relative.substring(0, relative.lastIndexOf("/"))