Skip to main content
Module

x/ts_morph/mod.ts>NoSubstitutionTemplateLiteral#setLiteralValue

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

Sets the literal value.

Note: This could possibly replace the node if you add a tagged template.

Parameters

value: string
  • Value to set.

Returns

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