Correct SyntaxNode isNamed type

This commit is contained in:
Kenneth Skovhus 2020-05-17 20:33:53 +02:00 committed by GitHub
parent 37ee7acc9e
commit 02196f8ae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,6 @@ declare module 'web-tree-sitter' {
export interface SyntaxNode {
tree: Tree;
type: string;
isNamed: boolean;
text: string;
startPosition: Point;
endPosition: Point;
@ -74,6 +73,7 @@ declare module 'web-tree-sitter' {
hasError(): boolean;
equals(other: SyntaxNode): boolean;
isMissing(): boolean;
isNamed(): boolean;
toString(): string;
child(index: number): SyntaxNode | null;
namedChild(index: number): SyntaxNode | null;