Skip to main content
Module

x/ts_morph/mod.ts>BindingElement#getPropertyNameNodeOrThrow

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

Gets binding element's property name node or throws if not found.

For example in const { a: b } = { a: 5 }, a would be the property name.

Parameters

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