Skip to main content
Module

x/ts_morph/mod.ts>HeritageClause

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class HeritageClause
extends Node<ts.HeritageClause>
import { HeritageClause } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Methods

getParent(): NodeParentType<ts.HeritageClause>
getParentOrThrow(): NonNullable<NodeParentType<ts.HeritageClause>>
getToken(): SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword

Gets the heritage clause token.

Gets all the type nodes for the heritage clause.

removeExpression(index: number): this

Remove the expression from the heritage clause.

Removes the expression from the heritage clause.