File tree 2 files changed +1
-3
lines changed 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10401,8 +10401,6 @@ namespace ts {
10401
10401
}
10402
10402
10403
10403
function checkStringLiteralExpression(node: StringLiteral): Type {
10404
- // TODO (drosen): Do we want to apply the same approach to no-sub template literals?
10405
-
10406
10404
const contextualType = getContextualType(node);
10407
10405
if (contextualType && contextualTypeIsStringLiteralType(contextualType)) {
10408
10406
return getStringLiteralType(node);
Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ namespace ts {
701
701
}
702
702
703
703
// 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 .
705
705
export interface StringLiteral extends LiteralExpression , TypeNode {
706
706
_stringLiteralBrand : any ;
707
707
}
You can’t perform that action at this time.
0 commit comments