UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

23 lines (22 loc) 958 B
import type { GenericVersion } from '../generic'; import { GenericVersioningApi } from '../generic'; import type { VersioningApiConstructor } from '../types'; export declare const id = "regex"; export declare const displayName = "Regular Expression"; export declare const urls: never[]; export declare const supportsRanges = false; export interface RegExpVersion extends GenericVersion { /** * compatibility, if present, are treated as a compatibility layer: we will * never try to update to a version with a different compatibility. */ compatibility: string; } export declare class RegExpVersioningApi extends GenericVersioningApi<RegExpVersion> { protected readonly _config: RegExp; constructor(_new_config: string | undefined); protected _parse(version: string): RegExpVersion | null; isCompatible(version: string, current: string): boolean; } export declare const api: VersioningApiConstructor; export default api;