File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10401,8 +10401,6 @@ namespace ts {
1040110401 }
1040210402
1040310403 function checkStringLiteralExpression(node: StringLiteral): Type {
10404- // TODO (drosen): Do we want to apply the same approach to no-sub template literals?
10405-
1040610404 const contextualType = getContextualType(node);
1040710405 if (contextualType && contextualTypeIsStringLiteralType(contextualType)) {
1040810406 return getStringLiteralType(node);
Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ namespace ts {
701701 }
702702
703703 // Note that a StringLiteral AST node is both an Expression and a TypeNode. The latter is
704- // because string literals can appear in the type annotation of a parameter node .
704+ // because string literals can appear in type annotations as well .
705705 export interface StringLiteral extends LiteralExpression , TypeNode {
706706 _stringLiteralBrand : any ;
707707 }
You can’t perform that action at this time.
0 commit comments