Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>ParameteredNode

Compile your Deno project to run on Node.js.
Go to Latest
interface ParameteredNode
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.

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.

function ParameteredNode
import { ParameteredNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<ParameteredNodeExtensionType>