EvaluatedNode
API / publicodes / EvaluatedNode
type EvaluatedNode<K, T>: object & ASTNode<K>;
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:155 |
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: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 ? | Unit | The unit in which the value is expressed. | packages/core/src/AST/types.ts:146 |
Type Parameters
Type Parameter | Default type |
---|---|
K extends NodeKind | NodeKind |
T extends EvaluatedValueTypes | EvaluatedValueTypes |