EvaluatedNode

API / publicodes / EvaluatedNode

type EvaluatedNode<K, T>: object & ASTNode<K>;

An ASTNode decorated with evaluation information

Returned by Engine.evaluate.

Type declaration

NameTypeDescriptionDefined in
missingVariablesMissingVariablesThe rules that are needed in the situation to compute the exact value for this node.packages/core/src/AST/types.ts:155
nodeValueEvaluation<T>The value of the node after evaluation. Can be a number, a string, a boolean, null (« non applicable ») or undefined (« non défini »).packages/core/src/AST/types.ts:142
traversedVariables?string[]Experimental The list of all the rules that have been traversed to evaluate this node.packages/core/src/AST/types.ts:151
unit?UnitThe unit in which the value is expressed.packages/core/src/AST/types.ts:146

Type Parameters

Type ParameterDefault type
K extends NodeKindNodeKind
T extends EvaluatedValueTypesEvaluatedValueTypes

Defined in

packages/core/src/AST/types.ts:133