Skip to content

Commit c8adb0b

Browse files
committed
fix type error
1 parent 44d8863 commit c8adb0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/converts/attr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ function buildExpressionTypeChecker<T extends ESTree.Expression>(
946946
}
947947

948948
function hasTypeInfo(element: any): boolean {
949-
if (element.type.startsWith("TS")) {
949+
if (element.type?.startsWith("TS")) {
950950
return true;
951951
}
952952
for (const key of Object.keys(element)) {

0 commit comments

Comments
 (0)