Module

x/ts_morph/mod.ts>FunctionDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class FunctionDeclaration
extends FunctionDeclarationBase<ts.FunctionDeclaration>
import { FunctionDeclaration } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.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.