Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

Gets the template head.

getParent(): NodeParentType<ts.TemplateExpression>
getParentOrThrow(): 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.