Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ImplementsClauseableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ImplementsClauseableNode
import { type ImplementsClauseableNode } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

getImplements(): ExpressionWithTypeArguments[]

Gets the implements clauses.

addImplements(text: string): ExpressionWithTypeArguments

Adds an implements clause.

addImplements(text: ReadonlyArray<string | WriterFunction> | WriterFunction): ExpressionWithTypeArguments[]

Adds multiple implements clauses.

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

Inserts an implements clause.

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

Inserts multiple implements clauses.

removeImplements(index: number): this

Removes the implements at the specified index.

removeImplements(implementsNode: ExpressionWithTypeArguments): this

Removes the specified implements.

function ImplementsClauseableNode
import { ImplementsClauseableNode } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ImplementsClauseableNodeExtensionType>