Kaizen
Browse modulesRulesrules/sharedTypes

Type Alias: EvaluateConditionLogicOptions<TContext>

type EvaluateConditionLogicOptions<TContext> = {
  contextForCondition?: (condition: Condition) => TContext;
  customConditions?: CustomConditionDef<unknown, TContext>[];
  evaluateAll?: boolean;
};

Defined in: shared/rules/engine.ts:227

Optional policies for condition-tree evaluation. The defaults preserve normal engine behavior: the supplied context is used for every condition and AND/OR nodes short-circuit.

Type Parameters

Type Parameter
TContext

Properties

contextForCondition?

optional contextForCondition?: (condition: Condition) => TContext;

Defined in: shared/rules/engine.ts:229

Parameters

ParameterType
conditionCondition

Returns

TContext


customConditions?

optional customConditions?: CustomConditionDef<unknown, TContext>[];

Defined in: shared/rules/engine.ts:228


evaluateAll?

optional evaluateAll?: boolean;

Defined in: shared/rules/engine.ts:230

On this page