You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/misc.mdx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,9 @@ function convertQuery(query: RuleGroupTypeIC): RuleGroupType;
48
48
function transformQuery(query:RuleGroupTypeAny, options:QueryTransformerOptions):any;
49
49
```
50
50
51
-
This function recursively steps through nested `rules` arrays in a `RuleGroupType` or `RuleGroupTypeIC`, passing each `RuleType` object to a provided `ruleProcessor` function. Several other options are also available:
51
+
This function recursively steps through nested `rules` arrays in a `RuleGroupType` or `RuleGroupTypeIC`, passing each `RuleType` object to a provided `ruleProcessor` function. Available options include:
52
52
53
+
-`ruleProcessor`: Custom processing for each rule.
53
54
-`ruleGroupProcessor`: Custom processing for each rule group. (The `rules` property will be overwritten.)
54
55
-`propertyMap`: Keys in the rule or group objects that match keys in this object will be renamed to the corresponding value.
55
56
-`combinatorMap`: Best explained with an example: `{and: "&&", or: "||"}` would translate "and"/"or" combinators to "&&"/"||", respectively.
0 commit comments