Skip to content

Commit

Permalink
fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Oct 12, 2023
1 parent 0068b37 commit 672e797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5665,7 +5665,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
if (getSymbolIfSameReference(exported, symbol)) {
return exported;
}
if (symbol.flags & SymbolFlags.TypeAlias) {
if (symbol.flags & SymbolFlags.TypeAlias && exported.declarations?.find(isTypeAlias)) {
const aliasSymbol = getDeclaredTypeOfTypeAlias(exported).aliasSymbol;
if (aliasSymbol && getSymbolIfSameReference(aliasSymbol, symbol)) {
return exported;
Expand Down

0 comments on commit 672e797

Please sign in to comment.