wasm: Add descendantsOfType to typescript interface

This commit is contained in:
Max Brunsfeld 2019-07-17 08:59:14 -07:00
parent f00b310908
commit 5289e009c1

View file

@ -73,6 +73,7 @@ declare module 'web-tree-sitter' {
descendantForIndex(index: number): SyntaxNode;
descendantForIndex(startIndex: number, endIndex: number): SyntaxNode;
descendantsOfType(type: string | Array<string>, startPosition?: Point, endPosition?: Point): Array<SyntaxNode>;
namedDescendantForIndex(index: number): SyntaxNode;
namedDescendantForIndex(startIndex: number, endIndex: number): SyntaxNode;
descendantForPosition(position: Point): SyntaxNode;