Merge pull request #18938 from backstage/freben/fix-language-map

fix the config checking error for linguist
This commit is contained in:
Fredrik Adelöw
2023-08-03 21:57:34 +02:00
committed by GitHub
+3 -1
View File
@@ -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<string, string | undefined>;
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.