Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1fd56a

Browse filesBrowse files
committed
Fix minor issues
1 parent cba9ff3 commit e1fd56a
Copy full SHA for e1fd56a

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/compiler/checker.ts

Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11556,9 +11556,9 @@ namespace ts {
1155611556
// because it is possibly contained in a circular chain of eagerly resolved types.
1155711557
function isDeferredTypeReferenceNode(node: TypeReferenceNode | ArrayTypeNode | TupleTypeNode) {
1155811558
return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) &&
11559-
node.kind === SyntaxKind.ArrayType ?
11560-
mayResolveTypeAlias((<ArrayTypeNode>node).elementType) :
11561-
some(node.kind === SyntaxKind.TypeReference ? (<TypeReferenceNode>node).typeArguments : (<TupleTypeNode>node).elementTypes, mayResolveTypeAlias);
11559+
(node.kind === SyntaxKind.ArrayType ?
11560+
mayResolveTypeAlias(node.elementType) :
11561+
some(node.kind === SyntaxKind.TypeReference ? node.typeArguments : node.elementTypes, mayResolveTypeAlias));
1156211562
}
1156311563

1156411564
// Return true when the given node is transitively contained in type constructs that eagerly
@@ -11590,14 +11590,14 @@ namespace ts {
1159011590
case SyntaxKind.TypeQuery:
1159111591
return true;
1159211592
case SyntaxKind.TypeOperator:
11593-
if ((<TypeOperatorNode>node).operator === SyntaxKind.UniqueKeyword) break;
11593+
return (<TypeOperatorNode>node).operator !== SyntaxKind.UniqueKeyword && mayResolveTypeAlias((<TypeOperatorNode>node).type);
1159411594
case SyntaxKind.ParenthesizedType:
1159511595
case SyntaxKind.OptionalType:
1159611596
case SyntaxKind.JSDocOptionalType:
1159711597
case SyntaxKind.JSDocNullableType:
1159811598
case SyntaxKind.JSDocNonNullableType:
1159911599
case SyntaxKind.JSDocTypeExpression:
11600-
return mayResolveTypeAlias((<TypeOperatorNode | ParenthesizedTypeNode | OptionalTypeNode | JSDocTypeReferencingNode>node).type);
11600+
return mayResolveTypeAlias((<ParenthesizedTypeNode | OptionalTypeNode | JSDocTypeReferencingNode>node).type);
1160111601
case SyntaxKind.RestType:
1160211602
return (<RestTypeNode>node).type.kind !== SyntaxKind.ArrayType || mayResolveTypeAlias((<ArrayTypeNode>(<RestTypeNode>node).type).elementType);
1160311603
case SyntaxKind.UnionType:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.