From 5dbc9286ed6fb165e9940ace397e557bcbc315ec Mon Sep 17 00:00:00 2001 From: RahulGautamSingh 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 a1563324f48067..1f2ac991c4f7be 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 c2b24197c07d30..37b19ebe5ca5b9 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);