import { type ParameteredNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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.
getParameters(): ParameterDeclaration[]
Gets all the parameters of the node.
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://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
Type Parameters
T extends Constructor<ParameteredNodeExtensionType>
Parameters
Base: T