Skip to content

Commit c3c3faa

Browse files
committed
JS: Alias references are not always safe to expand
1 parent 3694ed5 commit c3c3faa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascript/extractor/lib/typescript/src/type_table.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ function isTypeAlwaysSafeToExpand(type: ts.Type): boolean {
4343
return false;
4444
}
4545
}
46+
if (type.aliasSymbol != null) {
47+
return false;
48+
}
4649
return true;
4750
}
4851

0 commit comments

Comments
 (0)