Module

x/ts_morph/mod.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://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

Add method overloads.

getParent(): NodeParentType<ts.MethodDeclaration>
getParentOrThrow(message?: string | (() => string)): 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.