Module

x/ts_morph/ts_morph.d.ts>FalseLiteral

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class FalseLiteral
extends FalseLiteralBase<ts.FalseLiteral>
import { FalseLiteral } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";

Methods

getLiteralValue(): boolean

Gets the literal value.

getParent(): NodeParentType<ts.FalseLiteral>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.FalseLiteral>>
setLiteralValue(value: boolean): this | TrueLiteral

Sets the literal value.

Note: This forgets the current node and returns the new node if the value changes.