Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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