UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

14 lines (13 loc) 511 B
import * as ts from "typescript"; import { Constructor } from "./../../Constructor"; import { Node, Expression } from "./../common"; export declare type ArgumentedNodeExtensionType = Node<ts.Node & { arguments: ts.NodeArray<ts.Expression>; }>; export interface ArgumentedNode { /** * Gets all the arguments of the node. */ getArguments(): Expression[]; } export declare function ArgumentedNode<T extends Constructor<ArgumentedNodeExtensionType>>(Base: T): Constructor<ArgumentedNode> & T;