Skip to content

Commit

Permalink
update hasTypeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Nov 23, 2023
1 parent 79c1944 commit a15002b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/parser/converts/attr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,7 @@ function buildExpressionTypeChecker<T extends ESTree.Expression>(
}

function hasTypeInfo(element: any): boolean {
if (
element.type === "TSTypeAnnotation" ||
element.type === "TSAsExpression"
) {
if (element.type.startsWith("TS")) {
return true;
}
for (const key of Object.keys(element)) {
Expand Down

0 comments on commit a15002b

Please sign in to comment.