Skip to main content
Module

x/deno2node/src/deps.deno.ts>PropertyDeclaration

Compile your Deno project to run on Node.js.
Go to Latest
class PropertyDeclaration
extends PropertyDeclarationBase<ts.PropertyDeclaration>
import { PropertyDeclaration } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.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.