From 414ecc6a272b75f50829110d79c28f9e062dd329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 3 Aug 2023 21:30:06 +0200 Subject: [PATCH] fix the config checking error for linguist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- plugins/linguist-backend/config.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/linguist-backend/config.d.ts b/plugins/linguist-backend/config.d.ts index 5faf28fb1d..e7ad487d12 100644 --- a/plugins/linguist-backend/config.d.ts +++ b/plugins/linguist-backend/config.d.ts @@ -35,7 +35,9 @@ export interface Config { * A custom mapping of linguist languages to how they should be rendered as entity tags. * If a language is mapped to '' it will not be included as a tag. */ - languageMap?: Record; + languageMap?: { + [language: string]: string | undefined; + }; /** * How long to cache entity languages for in memory. Used to avoid constant db hits during * processing. Defaults to 30 minutes.