Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
class FunctionDeclaration
extends FunctionDeclarationBase<ts.FunctionDeclaration>
import { FunctionDeclaration } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

Adds function overloads.

getParent(): NodeParentType<ts.FunctionDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.FunctionDeclaration>>

Gets the structure equivalent to this node.

Inserts a function overload.

Inserts function overloads.

remove(): void

Removes this function declaration.

set(structure: Partial<FunctionDeclarationStructure>): this

Sets the node from a structure.