ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
15 lines (14 loc) • 625 B
TypeScript
import * as ts from "typescript";
import { Constructor } from "./../../Constructor";
import { Node } from "./../common";
import { HeritageClause } from "./../general/HeritageClause";
export declare type HeritageClauseableNodeExtensionType = Node<ts.Node & {
heritageClauses?: ts.NodeArray<ts.HeritageClause>;
}>;
export interface HeritageClauseableNode {
/**
* Gets the heritage clauses of the node.
*/
getHeritageClauses(): HeritageClause[];
}
export declare function HeritageClauseableNode<T extends Constructor<HeritageClauseableNodeExtensionType>>(Base: T): Constructor<HeritageClauseableNode> & T;