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

x/ts_morph/ts_morph.d.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@16.0.0/ts_morph.d.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.