import { FunctionDeclaration } from "https://dotland.deno.dev/x/ts_morph@15.1.0/ts_morph.d.ts";
Methods
addOverloads(structures: ReadonlyArray<OptionalKind<FunctionDeclarationOverloadStructure>>): FunctionDeclaration[]
Adds function overloads.
getParent(): NodeParentType<ts.FunctionDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.FunctionDeclaration>>
insertOverload(index: number, structure: OptionalKind<FunctionDeclarationOverloadStructure>): FunctionDeclaration
Inserts a function overload.
insertOverloads(index: number, structures: ReadonlyArray<OptionalKind<FunctionDeclarationOverloadStructure>>): FunctionDeclaration[]
Inserts function overloads.