Module

x/ts_morph/ts_morph.d.ts>PropertyDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class PropertyDeclaration
extends PropertyDeclarationBase<ts.PropertyDeclaration>
import { PropertyDeclaration } from "https://dotland.deno.dev/x/ts_morph@18.0.0/ts_morph.d.ts";

Methods

getParent(): NodeParentType<ts.PropertyDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.PropertyDeclaration>>

Gets the structure equivalent to this node.

Gets if this property declaration has an accessor keyword.

remove(): void

Removes the property.

set(structure: Partial<PropertyDeclarationStructure>): this

Sets the node from a structure.

setHasAccessorKeyword(value: boolean): this

Sets if this property declaration should have an accessor keyword.