EvaluatedNode
API / publicodes / EvaluatedNode
type EvaluatedNode<K, T> = object & ASTNode<K>; Defined in: packages/core/src/AST/types.ts:145
An ASTNode decorated with evaluation information
Returned by Engine.evaluate.
Type declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
missingVariables | MissingVariables | The rules that are needed in the situation to compute the exact value for this node. | packages/core/src/AST/types.ts:167 |
nodeValue | Evaluation<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:154 |
traversedVariables? | string[] | Experimental The list of all the rules that have been traversed to evaluate this node. | packages/core/src/AST/types.ts:163 |
unit? | Unit | The unit in which the value is expressed. | packages/core/src/AST/types.ts:158 |
Type Parameters
| Type Parameter | Default type |
|---|---|
K extends NodeKind | NodeKind |
T extends EvaluatedValueTypes | EvaluatedValueTypes |