Fixed comments.

This commit is contained in:
Daniel Rosenwasser
2015-11-09 13:27:19 -08:00
parent d294524861
commit ea4e21d969
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -10401,8 +10401,6 @@ namespace ts {
}
function checkStringLiteralExpression(node: StringLiteral): Type {
// TODO (drosen): Do we want to apply the same approach to no-sub template literals?
const contextualType = getContextualType(node);
if (contextualType && contextualTypeIsStringLiteralType(contextualType)) {
return getStringLiteralType(node);
+1 -1
View File
@@ -701,7 +701,7 @@ namespace ts {
}
// Note that a StringLiteral AST node is both an Expression and a TypeNode. The latter is
// because string literals can appear in the type annotation of a parameter node.
// because string literals can appear in type annotations as well.
export interface StringLiteral extends LiteralExpression, TypeNode {
_stringLiteralBrand: any;
}