import { type ParameteredNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";
Methods
getParameter(name: string): ParameterDeclaration | undefined
Gets a parameter or undefined if it doesn't exist.
getParameter(findFunction: (declaration: ParameterDeclaration) => boolean): ParameterDeclaration | undefined
Gets a parameter or undefined if it doesn't exist.
getParameterOrThrow(name: string): ParameterDeclaration
Gets a parameter or throws if it doesn't exist.
getParameterOrThrow(findFunction: (declaration: ParameterDeclaration) => boolean): ParameterDeclaration
Gets a parameter or throws if it doesn't exist.
addParameter(structure: OptionalKind<ParameterDeclarationStructure>): ParameterDeclaration
Adds a parameter.
addParameters(structures: ReadonlyArray<OptionalKind<ParameterDeclarationStructure>>): ParameterDeclaration[]
Adds parameters.
insertParameters(index: number, structures: ReadonlyArray<OptionalKind<ParameterDeclarationStructure>>): ParameterDeclaration[]
Inserts parameters.
insertParameter(index: number, structure: OptionalKind<ParameterDeclarationStructure>): ParameterDeclaration
Inserts a parameter.
import { ParameteredNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";
Type Parameters
T extends Constructor<ParameteredNodeExtensionType>
Parameters
Base: T