negateRule()
negateRule(
rule:RuleType):RuleType<string,string,any,string,Record<string,any>> |undefined
Defined in: packages/core/src/utils/formatQuery/negation.ts:43
Negates a rule via negateOperator. Match modes some↔none swap; other match
modes and non-default operators can't be negated, so undefined is returned.
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
Returns
RuleType<string, string, any, string, Record<string, any>> | undefined
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.