Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ObjectLiteralExpression#getPropertyOrThrow

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

Gets the first property by the provided name or throws.

Parameters

name: string
  • Name of the property.

Gets the first property that matches the provided find function or throws.

Parameters

findFunction: (property: ObjectLiteralElementLike) => boolean
  • Find function.