Skip to content

Commit

Permalink
Fixed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Nov 9, 2015
1 parent d294524 commit ea4e21d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea4e21d

Please sign in to comment.