WalkPrimitives<G>
Defined in: rules-engine/src/utils/formatRulesEngine/walkRulesEngine.ts:13
Primitives that adapt walkRulesEngine to a particular guard representation G (e.g. a
json-rules-engine TopLevelCondition, or a NativePredicate function).
Type Parameters
| Type Parameter |
|---|
G |
Properties
combine
combine: (
guards:G[]) =>G
Defined in: rules-engine/src/utils/formatRulesEngine/walkRulesEngine.ts:17
ANDs guards together. An empty array must yield an always-true guard.
Parameters
| Parameter | Type |
|---|---|
guards | G[] |
Returns
G
negate
negate: (
guard:G) =>G
Defined in: rules-engine/src/utils/formatRulesEngine/walkRulesEngine.ts:19
Negates a guard.
Parameters
| Parameter | Type |
|---|---|
guard | G |
Returns
G
processAntecedent
processAntecedent: (
antecedent:RuleGroupType<RuleType<string,string,any,string,Record<string,any>>,string> |RuleGroupTypeIC<RuleType<string,string,any,string,Record<string,any>>,string>) =>G
Defined in: rules-engine/src/utils/formatRulesEngine/walkRulesEngine.ts:15
Compiles a single condition's antecedent (rule group) into a guard.
Parameters
| Parameter | Type |
|---|---|
antecedent | RuleGroupType<RuleType<string, string, any, string, Record<string, any>>, string> | RuleGroupTypeIC<RuleType<string, string, any, string, Record<string, any>>, string> |
Returns
G
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.