Skip to content

Commit ea4e21d

Browse files
Fixed comments.
1 parent d294524 commit ea4e21d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)