import { FunctionDeclaration } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";
Methods
addOverloads(structures: ReadonlyArray<OptionalKind<FunctionDeclarationOverloadStructure>>): FunctionDeclaration[]
Adds function overloads.
getParent(): NodeParentType<ts.FunctionDeclaration>
getParentOrThrow(message?: string | (() => string)): 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.