Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ShorthandPropertyAssignment#setInitializer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ShorthandPropertyAssignment.prototype.setInitializer
import { ShorthandPropertyAssignment } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Sets the initializer.

Note: The current node will no longer be valid because it's no longer a shorthand property assignment.

Parameters

text: string
  • New text to set for the initializer.