Module

x/ts_morph/mod.ts>ShorthandPropertyAssignment#getObjectAssignmentInitializerOrThrow

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

Gets the object assignment initializer or throws if it doesn't exist.

Parameters

optional
message: string | (() => string)

Returns

Expression<ts.Expression>