defaultRulesEngineProcessorNative
constdefaultRulesEngineProcessorNative:RulesEngineProcessor<RulesEngineEvaluator>
Defined in: rules-engine/src/utils/formatRulesEngine/defaultRulesEngineProcessorNative.ts:25
Default processor for the "native" export format. Returns an in-process
RulesEngineEvaluator: a function that, given a facts object, returns the consequents of
every condition that fires—in order, honoring the evaluationMode. Antecedents are compiled to
predicates with no runtime dependencies.
Example
const evaluate = formatRulesEngine(re, 'native');
const firedConsequents = evaluate({ experience: 12 });
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.