UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

24 lines (23 loc) 817 B
import * as ts from "typescript"; import { Node } from "./../common"; import { ExpressionWithTypeArguments } from "./../type"; export declare class HeritageClause extends Node<ts.HeritageClause> { /** * Gets all the types for the heritage clause. */ getTypes(): ExpressionWithTypeArguments[]; /** * Gets the heritage clause token. */ getToken(): ts.SyntaxKind.ExtendsKeyword | ts.SyntaxKind.ImplementsKeyword; /** * Remove the expression from the heritage clause. * @param index - Index of the expression to remove. */ removeExpression(index: number): this; /** * Removes the expression from the heritage clause. * @param expressionNode - Expression to remove. */ removeExpression(expressionNode: ExpressionWithTypeArguments): this; }