mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
16 lines
515 B
TypeScript
16 lines
515 B
TypeScript
import type { PackageRule, PackageRuleInputConfig } from '../../config/types';
|
|
import type { MatcherApi } from './types';
|
|
|
|
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>;
|
|
}
|