From 9f96c1e224b181c37bc574e1fda0713e5732dcbf Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 23 Feb 2023 10:13:27 +0100
Subject: [PATCH] chore: remove unnecessary Range types (#20582)

---
 lib/config/types.ts             | 3 +--
 lib/modules/versioning/types.ts | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/config/types.ts b/lib/config/types.ts
index d4572fafb4..f453db98d7 100644
--- a/lib/config/types.ts
+++ b/lib/config/types.ts
@@ -1,5 +1,4 @@
 import type { LogLevel } from 'bunyan';
-import type { Range } from 'semver';
 import type { PlatformId } from '../constants';
 import type { HostRule } from '../types';
 import type { GitNoVerifyOption } from '../util/git/types';
@@ -317,7 +316,7 @@ export interface PackageRule
   excludePackagePatterns?: string[];
   excludePackagePrefixes?: string[];
   matchCurrentValue?: string;
-  matchCurrentVersion?: string | Range;
+  matchCurrentVersion?: string;
   matchSourceUrlPrefixes?: string[];
   matchSourceUrls?: string[];
   matchUpdateTypes?: UpdateType[];
diff --git a/lib/modules/versioning/types.ts b/lib/modules/versioning/types.ts
index 362a6bd0d0..bb16fe5d70 100644
--- a/lib/modules/versioning/types.ts
+++ b/lib/modules/versioning/types.ts
@@ -1,4 +1,4 @@
-import type { Range, SemVer } from 'semver';
+import type { SemVer } from 'semver';
 import type { RangeStrategy } from '../../types';
 
 export interface NewValueConfig {
@@ -94,7 +94,7 @@ export interface VersioningApi {
   /**
    * Check whether the `version` satisfies the `range` constraint.
    */
-  matches(version: string, range: string | Range): boolean;
+  matches(version: string, range: string): boolean;
 
   valueToVersion?(version: string): string;
 }
-- 
GitLab