Skip to content

Commit ff44961

Browse files
committed
add TSTypePredicate
1 parent 79c1944 commit ff44961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parser/converts/attr.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,8 @@ function buildExpressionTypeChecker<T extends ESTree.Expression>(
948948
function hasTypeInfo(element: any): boolean {
949949
if (
950950
element.type === "TSTypeAnnotation" ||
951-
element.type === "TSAsExpression"
951+
element.type === "TSAsExpression" ||
952+
element.type === "TSTypePredicate"
952953
) {
953954
return true;
954955
}

0 commit comments

Comments
 (0)