From 5dbc9286ed6fb165e9940ace397e557bcbc315ec Mon Sep 17 00:00:00 2001
From: RahulGautamSingh <rahultesnik@gmail.com>
Date: Sat, 26 Aug 2023 12:20:17 +0545
Subject: [PATCH] refactor: fix `matchManagers` type (#24087)

---
 lib/config/types.ts           | 2 +-
 lib/config/validation.spec.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/config/types.ts b/lib/config/types.ts
index a1563324f4..1f2ac991c4 100644
--- a/lib/config/types.ts
+++ b/lib/config/types.ts
@@ -336,7 +336,7 @@ export interface PackageRule
   isVulnerabilityAlert?: boolean;
   matchFileNames?: string[];
   matchBaseBranches?: string[];
-  matchManagers?: string | string[];
+  matchManagers?: string[];
   matchDatasources?: string[];
   matchDepTypes?: string[];
   matchDepNames?: string[];
diff --git a/lib/config/validation.spec.ts b/lib/config/validation.spec.ts
index c2b24197c0..37b19ebe5c 100644
--- a/lib/config/validation.spec.ts
+++ b/lib/config/validation.spec.ts
@@ -224,7 +224,7 @@ describe('config/validation', () => {
         ],
       };
       const { warnings, errors } = await configValidation.validateConfig(
-        config
+        config as any
       );
       expect(warnings).toHaveLength(0);
       expect(errors).toHaveLength(2);
-- 
GitLab