CompiledText
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
isSingleExpression |
readonly |
boolean |
True when the text is exactly one placeholder, e.g. “{{ row.total }}”. |
isStatic |
readonly |
boolean |
True when the text has no placeholders. |
parts |
readonly |
readonly TextPart[] |
- |
source |
readonly |
string |
- |
Methods
Section titled “Methods”evaluate()
Section titled “evaluate()”evaluate(scope?, options?): string;Evaluates placeholders and concatenates the result.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
scope? |
Readonly<Record<string, unknown>> |
options? |
TextEvaluateOptions |
Returns
Section titled “Returns”string
evaluateValue()
Section titled “evaluateValue()”evaluateValue(scope?, options?): unknown;The raw value for single-expression text, otherwise the evaluated string.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
scope? |
Readonly<Record<string, unknown>> |
options? |
EvaluateOptions |
Returns
Section titled “Returns”unknown