Skip to main content
Module

x/ts_morph/mod.ts>TemplateLiteralTypeNode

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

Methods

Gets the template head.

getParent(): NodeParentType<ts.TemplateLiteralTypeNode>
getParentOrThrow(): NonNullable<NodeParentType<ts.TemplateLiteralTypeNode>>
getTemplateSpans(): TypeNode<ts.TypeNode>[]

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.