Add missing copy() and getLanguage() calls to Tree web types
@@ -103,11 +103,13 @@ declare module 'web-tree-sitter' {
export interface Tree {
readonly rootNode: SyntaxNode;
+ copy(): Tree;
delete(): void;
edit(delta: Edit): Tree;
walk(): TreeCursor;
getChangedRanges(other: Tree): Range[];
getEditedRange(other: Tree): Range;
+ getLanguage(): any;
}
namespace Language {
function load(url: string): Promise<any>
