Skip to main content
Module

x/deno2node/src/deps.deno.ts>StringLiteral

Compile your Deno project to run on Node.js.
Go to Latest
class StringLiteral
extends StringLiteralBase<ts.StringLiteral>
import { StringLiteral } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getLiteralValue(): string

Gets the literal value.

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

getParent(): NodeParentType<ts.StringLiteral>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.StringLiteral>>

Gets the quote kind.

setLiteralValue(value: string): this

Sets the literal value.