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

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

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

Methods

Gets the extends clauses.

addExtends(texts: ReadonlyArray<string | WriterFunction> | WriterFunction): ExpressionWithTypeArguments[]

Adds multiple extends clauses.

addExtends(text: string): ExpressionWithTypeArguments

Adds an extends clause.

insertExtends(index: number, texts: ReadonlyArray<string | WriterFunction> | WriterFunction): ExpressionWithTypeArguments[]

Inserts multiple extends clauses.

insertExtends(index: number, text: string): ExpressionWithTypeArguments

Inserts an extends clause.

removeExtends(index: number): this

Removes the extends at the specified index.

removeExtends(extendsNode: ExpressionWithTypeArguments): this

Removes the specified extends.

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

Type Parameters

T extends Constructor<ExtendsClauseableNodeExtensionType>