UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

10 lines (9 loc) 302 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; }