Skip to main content
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://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

getParent(): NodeParentType<ts.PropertyDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.PropertyDeclaration>>

Gets the structure equivalent to this node.

remove(): void

Removes the property.

set(structure: Partial<PropertyDeclarationStructure>): this

Sets the node from a structure.