Skip to main content
Module

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

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

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

Parameters

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

Returns

Expression<ts.Expression>