mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-24 14:34:21 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
19 lines
526 B
TypeScript
19 lines
526 B
TypeScript
import type {
|
|
PackageRule,
|
|
PackageRuleInputConfig,
|
|
} from '../../config/types.ts';
|
|
import type { MatcherApi } from './types.ts';
|
|
|
|
export abstract class Matcher implements MatcherApi {
|
|
/**
|
|
* Test match packageRule against inputConfig
|
|
* @return null if no rules are defined, true if match should be applied and else false
|
|
* @param inputConfig
|
|
* @param packageRule
|
|
*/
|
|
abstract matches(
|
|
inputConfig: PackageRuleInputConfig,
|
|
packageRule: PackageRule,
|
|
): boolean | null | Promise<boolean | null>;
|
|
}
|