Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.10.0/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.