Skip to content

Commit

Permalink
add TSTypePredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Nov 23, 2023
1 parent 79c1944 commit ff44961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/converts/attr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,8 @@ function buildExpressionTypeChecker<T extends ESTree.Expression>(
function hasTypeInfo(element: any): boolean {
if (
element.type === "TSTypeAnnotation" ||
element.type === "TSAsExpression"
element.type === "TSAsExpression" ||
element.type === "TSTypePredicate"
) {
return true;
}
Expand Down

0 comments on commit ff44961

Please sign in to comment.