import { FunctionDeclaration } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";
Methods
Adds a function overload.
addOverloads(structures: ReadonlyArray<OptionalKind<FunctionDeclarationOverloadStructure>>): FunctionDeclaration[]
Adds function overloads.
getParent(): NodeParentType<ts.FunctionDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.FunctionDeclaration>>
Gets the structure equivalent to this node.
insertOverload(index: number, structure: OptionalKind<FunctionDeclarationOverloadStructure>): FunctionDeclaration
Inserts a function overload.
insertOverloads(index: number, structures: ReadonlyArray<OptionalKind<FunctionDeclarationOverloadStructure>>): FunctionDeclaration[]
Inserts function overloads.
remove(): void
Removes this function declaration.
set(structure: Partial<FunctionDeclarationStructure>): this
Sets the node from a structure.