Skip to main content
Module

x/ts_morph/mod.ts>TemplateLiteralTypeNode#setLiteralValue

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method TemplateLiteralTypeNode.prototype.setLiteralValue
import { TemplateLiteralTypeNode } from "https://deno.land/x/ts_morph@15.1.0/mod.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.