Skip to main content
Module

x/ts_morph/mod.ts>MethodDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class MethodDeclaration
extends MethodDeclarationBase<ts.MethodDeclaration>
import { MethodDeclaration } from "https://deno.land/x/ts_morph@22.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.