check return type of this type predicates (#57341)

This commit is contained in:
Zzzen authored and GitHub committed 2024-04-08 13:37:24 -07:00
1 parent 13e64740c9
commit f608fc0a10
9 files changed
+535 -3

No files matched your search

+2 -2
View File
@@ -591,7 +591,7 @@ export class LineNode implements LineCollection {
if (children.length) this.updateCounts();
}
isLeaf() {
isLeaf(): this is LineLeaf {
return false;
}
@@ -839,7 +839,7 @@ export class LineLeaf implements LineCollection {
constructor(public text: string) {
}
isLeaf() {
isLeaf(): this is LineLeaf {
return true;
}