mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-13 05:58:29 +09:00
9 lines
357 B
TypeScript
9 lines
357 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import {ruleMatches as evaluateRuleMatch} from '@fluxer/limits/src/LimitRuleRuntime';
|
|
import type {LimitFilter, LimitMatchContext} from '@fluxer/limits/src/LimitTypes';
|
|
|
|
export function ruleMatches(filters: LimitFilter | undefined, ctx: LimitMatchContext): boolean {
|
|
return evaluateRuleMatch(filters, ctx);
|
|
}
|