Skip to main content
Module

x/deno2node/src/deps.deno.ts>ShorthandPropertyAssignment#setInitializer

Compile your Deno project to run on Node.js.
Go to Latest
method ShorthandPropertyAssignment.prototype.setInitializer
import { ShorthandPropertyAssignment } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.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.