mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed comments.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user