Module

x/ts_morph/ts_morph.d.ts>ExtendsClauseableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ExtendsClauseableNode
import { type ExtendsClauseableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.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://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ExtendsClauseableNodeExtensionType>