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

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

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

Methods

getTypeArguments(): TypeNode[]

Gets all the type arguments of the node.

addTypeArgument(argumentText: string): TypeNode

Adds a type argument.

addTypeArguments(argumentTexts: ReadonlyArray<string>): TypeNode[]

Adds type arguments.

insertTypeArgument(index: number, argumentText: string): TypeNode

Inserts a type argument.

insertTypeArguments(index: number, argumentTexts: ReadonlyArray<string>): TypeNode[]

Inserts type arguments.

removeTypeArgument(typeArg: Node): this

Removes a type argument.

removeTypeArgument(index: number): this

Removes a type argument.

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

Type Parameters

T extends Constructor<TypeArgumentedNodeExtensionType>