Skip to main content
Module

x/ts_morph/ts_morph.d.ts>TemplateExpression#setLiteralValue

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method TemplateExpression.prototype.setLiteralValue
import { TemplateExpression } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Sets the literal value.

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

Parameters

value: string
  • Value to set.

Returns

Node<ts.Node>

The new node if the kind changed; the current node otherwise.