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
Go to Latest
method TrueLiteral.prototype.setLiteralValue
import { TrueLiteral } from "https://deno.land/x/ts_morph@21.0.1/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.