import { BindingElement } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";
Methods
getParent(): NodeParentType<ts.BindingElement>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.BindingElement>>
getPropertyNameNode(): PropertyName | undefined
Gets binding element's property name node or returns undefined if not found.
For example in const { a: b } = { a: 5 }
, a
would be the property name.
getPropertyNameNodeOrThrow(message?: string | (() => string)): PropertyName
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.