Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
interface TypeParameteredNode
import { type TypeParameteredNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getTypeParameter(name: string): TypeParameterDeclaration | undefined

Gets a type parameter or undefined if it doesn't exist.

getTypeParameter(findFunction: (declaration: TypeParameterDeclaration) => boolean): TypeParameterDeclaration | undefined

Gets a type parameter or undefined if it doesn't exist.

getTypeParameterOrThrow(name: string): TypeParameterDeclaration

Gets a type parameter or throws if it doesn't exist.

getTypeParameterOrThrow(findFunction: (declaration: TypeParameterDeclaration) => boolean): TypeParameterDeclaration

Gets a type parameter or throws if it doesn't exist.

getTypeParameters(): TypeParameterDeclaration[]

Gets the type parameters.

Adds a type parameter.

addTypeParameters(structures: ReadonlyArray<OptionalKind<TypeParameterDeclarationStructure> | string>): TypeParameterDeclaration[]

Adds type parameters.

insertTypeParameter(index: number, structure: OptionalKind<TypeParameterDeclarationStructure> | string): TypeParameterDeclaration

Inserts a type parameter.

insertTypeParameters(index: number, structures: ReadonlyArray<OptionalKind<TypeParameterDeclarationStructure> | string>): TypeParameterDeclaration[]

Inserts type parameters.

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

Type Parameters

T extends Constructor<TypeParameteredNodeExtensionType>