mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
16 lines
545 B
TypeScript
16 lines
545 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import {
|
|
calculateSpecificity as calculateRuntimeSpecificity,
|
|
compareSpecificity as compareRuntimeSpecificity,
|
|
} from '@fluxer/limits/src/LimitRuleRuntime';
|
|
import type {LimitFilter} from '@fluxer/limits/src/LimitTypes';
|
|
|
|
export function calculateSpecificity(filters: LimitFilter | undefined): number {
|
|
return calculateRuntimeSpecificity(filters);
|
|
}
|
|
|
|
export function compareSpecificity(a: LimitFilter | undefined, b: LimitFilter | undefined): number {
|
|
return compareRuntimeSpecificity(a, b);
|
|
}
|