Skip to main content
Module

x/ts_morph/ts_morph.d.ts>SetAccessorDeclaration

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

Methods

Gets the corresponding get accessor if one exists.

Gets the corresponding get accessor or throws if not exists.

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

Gets the structure equivalent to this node.

set(structure: Partial<SetAccessorDeclarationStructure>): this

Sets the node from a structure.