processMatchMode()
processMatchMode(
rule:RuleType):false|ProcessedMatchMode|null
Defined in: packages/core/src/utils/formatQuery/utils.ts:360
Transforms
match: { mode: "atLeast", threshold: 1 }tomatch: { mode: "some" }match: { mode: "atMost", threshold: 0 }tomatch: { mode: "none" }.
Returns:
- Processed
{ mode, threshold }object for valid subqueries nullif match mode is not applicable for the rulefalseif match mode is valid, but eitherthresholdis required and invalid, orvalueis not a valid rule group.
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
Returns
false | ProcessedMatchMode | null
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.