Skip to main content
Module

x/ts_morph/mod.ts>TrueLiteral#setLiteralValue

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

Sets the literal value.

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

Parameters

value: boolean
  • Value to set.