Module

x/ts_morph/mod.ts>TemplateExpression

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class TemplateExpression
extends TemplateExpressionBase<ts.TemplateExpression>
import { TemplateExpression } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

Gets the template head.

getParent(): NodeParentType<ts.TemplateExpression>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.TemplateExpression>>

Gets the template spans.

setLiteralValue(value: string): Node<ts.Node>

Sets the literal value.

Note: This could possibly replace the node if you remove all the tagged templates.