Include type operators in aliased type checks

This commit is contained in:
Anders Hejlsberg 2019-09-21 09:07:49 -07:00
parent db7c03d868
commit 8604d4e428

View File

@ -9630,6 +9630,7 @@ namespace ts {
case SyntaxKind.IntersectionType:
case SyntaxKind.IndexedAccessType:
case SyntaxKind.ConditionalType:
case SyntaxKind.TypeOperator:
return isAliasedType(parent);
case SyntaxKind.TypeAliasDeclaration:
return true;