UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

14 lines (13 loc) 369 B
import * as ts from "typescript"; import { Type } from "./../type"; import { Node } from "./Node"; export declare class Expression<T extends ts.Expression = ts.Expression> extends Node<T> { /** * Gets the contextual type of the expression. */ getContextualType(): Type | undefined; /** * Removes the expression. */ remove(): void; }