Instance methods
Public
Variable.prototype.getValue()
Variable.prototype.getValue()public getValue(): Value | undefined {
return this.#value;
}Returns
Example usage
// Example usage.
import { Variable } from '@angular-package/text';
// Returns Variable {'{fix}'} of Variable<"fix", string>.
const fix = new Variable('fix');
// Returns undefined of string | undefined.
fix.getValue();
// Returns Variable {'{fix}'} of Variable<"fix", "Open the link https://duckduckgo.com/">.
const fixed = new Variable('fix', 'Open the link https://duckduckgo.com/');
// Returns Open the link https://duckduckgo.com/ of "Open the link https://duckduckgo.com/" | undefined.
fixed.getValue();Variable.prototype.replaceVariable()
Variable.prototype.replaceVariable()Generic type variables
Parameters
Name: type
Description
Returns
Example usage
Variable.prototype.toArray()
Variable.prototype.toArray()Returns
Example usage
Variable.prototype.toObject()
Variable.prototype.toObject()Returns
Example usage
Variable.prototype.toString()
Variable.prototype.toString()Returns
Example usage
Variable.prototype.valueOf()
Variable.prototype.valueOf()Returns
Example usage
Last updated