fix(types): add missing range for BaseNode (#13046)

close #13027
This commit is contained in:
JounQin 2021-03-24 21:02:52 +08:00 committed by GitHub
parent 6ee87eea49
commit 238ce0bac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ interface BaseNode {
end: number | null; end: number | null;
loc: SourceLocation | null; loc: SourceLocation | null;
type: Node["type"]; type: Node["type"];
range?: [number, number];
extra?: Record<string, unknown>; extra?: Record<string, unknown>;
} }

View File

@ -39,6 +39,7 @@ interface BaseNode {
end: number | null; end: number | null;
loc: SourceLocation | null; loc: SourceLocation | null;
type: Node["type"]; type: Node["type"];
range?: [number, number];
extra?: Record<string, unknown>; extra?: Record<string, unknown>;
} }