Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method ShorthandPropertyAssignment.prototype.setInitializer
import { ShorthandPropertyAssignment } from "https://deno.land/x/ts_morph@22.0.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.