Handle missing global array type
This commit is contained in:
parent
5c21f43121
commit
bf0debb883
1 changed files with 2 additions and 1 deletions
|
@ -9620,7 +9620,8 @@ namespace ts {
|
|||
const target = getArrayOrTupleTargetType(node);
|
||||
const aliasSymbol = getAliasSymbolForTypeNode(node);
|
||||
const aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);
|
||||
links.resolvedType = node.kind === SyntaxKind.TupleType && node.elementTypes.length === 0 ? target :
|
||||
links.resolvedType = target === emptyGenericType ? emptyObjectType :
|
||||
node.kind === SyntaxKind.TupleType && node.elementTypes.length === 0 ? target :
|
||||
createDeferredTypeReference(target, node, /*mapper*/ undefined, aliasSymbol, aliasTypeArguments);
|
||||
}
|
||||
return links.resolvedType;
|
||||
|
|
Loading…
Reference in a new issue