Skip to main content
Module

x/ts_morph/ts_morph.d.ts>MethodDeclaration

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

Methods

Add method overloads.

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

Gets the structure equivalent to this node.

Inserts a method overload.

Inserts method overloads.

set(structure: Partial<MethodDeclarationStructure>): this

Sets the node from a structure.