UNPKG

446 BTypeScriptView Raw
1import ts = require('typescript');
2import { Change } from './change';
3/**
4 * Find all nodes from the AST in the subtree of node of SyntaxKind kind.
5 * @param node
6 * @param kind
7 * @param max The maximum number of items to return.
8 * @return all nodes of kind, or [] if none is found
9 */
10export declare function findNodes(node: ts.Node, kind: ts.SyntaxKind, max?: number): ts.Node[];
11export declare function removeAstNode(node: ts.Node): Change;