mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
chore: remove unnecessary Range types (#20582)
This commit is contained in:
parent
18bdac9d35
commit
9f96c1e224
2 changed files with 3 additions and 4 deletions
|
@ -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[];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue