Skip to main content

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

ParameterType
guardsG[]

Returns

G


negate

negate: (guard: G) => G

Defined in: rules-engine/src/utils/formatRulesEngine/walkRulesEngine.ts:19

Negates a guard.

Parameters

ParameterType
guardG

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

ParameterType
antecedentRuleGroupType<RuleType<string, string, any, string, Record<string, any>>, string> | RuleGroupTypeIC<RuleType<string, string, any, string, Record<string, any>>, string>

Returns

G


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.