diff --git a/lib/config/global.ts b/lib/config/global.ts index 9a1b68f7fa1589272c3c9a77a19c8f05cde24b6b..4c81facf974119ba4b5e326d1c8103e83d4134a9 100644 --- a/lib/config/global.ts +++ b/lib/config/global.ts @@ -2,7 +2,7 @@ import type { RenovateConfig, RepoGlobalConfig } from './types'; export class GlobalConfig { // TODO: once global config work is complete, add a test to make sure this list includes all options with globalOnly=true (#9603) - private static readonly OPTIONS = [ + private static readonly OPTIONS: (keyof RepoGlobalConfig)[] = [ 'allowCustomCrateRegistries', 'allowedPostUpgradeCommands', 'allowPlugins', @@ -40,7 +40,7 @@ export class GlobalConfig { const result = { ...config }; for (const option of GlobalConfig.OPTIONS) { - GlobalConfig.config[option] = config[option]; + GlobalConfig.config[option] = config[option] as never; delete result[option]; } diff --git a/tsconfig.strict.json b/tsconfig.strict.json index 546c9d9a867d18c3b8ec7900998d74ad983dd165..151e37de1e60856f4f11cf3b9389dd15660adfc6 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -7,6 +7,7 @@ }, "files": [ "./lib/config/app-strings.ts", + "./lib/config/global.ts", "./lib/config/migrations/types.ts", "./lib/config/presets/common.ts", "./lib/constants/error-messages.ts",