Skip to main content
Module

x/ts_morph/ts_morph.d.ts>StringLiteral#getLiteralValue

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

Gets the literal value.

This is equivalent to .getLiteralText() for string literals and only exists for consistency with other literals.

Returns

string