mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge angle-bracket fix
This commit is contained in:
1 parent
7608dc2306
commit
84cdc63d1f
1 file changed
+2
-4
@@ -1249,13 +1249,11 @@ namespace ts.Completions {
|
||||
return parentKind === SyntaxKind.AsExpression;
|
||||
|
||||
case SyntaxKind.LessThanToken:
|
||||
return parentKind === SyntaxKind.TypeReference;
|
||||
return parentKind === SyntaxKind.TypeReference ||
|
||||
parentKind === SyntaxKind.TypeAssertionExpression;
|
||||
|
||||
case SyntaxKind.ExtendsKeyword:
|
||||
return parentKind === SyntaxKind.TypeParameter;
|
||||
|
||||
case SyntaxKind.LessThanToken:
|
||||
return parentKind === SyntaxKind.TypeAssertionExpression;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user