Skip to main content
Module

x/ts_morph/mod.ts>FunctionDeclaration

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

Methods

Adds function overloads.

getParent(): NodeParentType<ts.FunctionDeclaration>
getParentOrThrow(): 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.