Skip to content

Commit 5faff56

Browse files
committed
JS: Map symbol base types to their actual type
1 parent fb40d9b commit 5faff56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ export class TypeTable {
10681068
let superType = this.typeChecker.getTypeFromTypeNode(typeExpr);
10691069
if (superType == null) continue;
10701070
let baseTypeSymbol = superType.symbol;
1071+
baseTypeSymbol = (baseTypeSymbol as any)?.type?.symbol ?? baseTypeSymbol;
10711072
if (baseTypeSymbol == null) continue;
10721073
let baseId = this.getSymbolId(baseTypeSymbol);
10731074
// Note: take care not to perform a recursive call between the two `push` calls.

0 commit comments

Comments
 (0)