Skip to main content

insertRE()

insertRE<RE>(rulesEngine: RE, subject: REConditionAny, conditionPath: Path, __namedParameters: InsertOptionsRE): RE

Defined in: packages/rules-engine/src/utils/rulesEngineTools.ts:295

Inserts a rule engine condition into a rules engine.

Type Parameters

Type Parameter
RE extends RulesEngineAny

Parameters

ParameterTypeDescription
rulesEngineREThe rules engine to update.
subjectREConditionAnyThe rules engine, consequent, rule, or rule group to insert.
conditionPathPathPath at which to insert the condition.
__namedParametersInsertOptionsREOptions.

Returns

RE

The new rules engine with the condition inserted.


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.