mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Linting.
This commit is contained in:
parent
3788254fdc
commit
ebc47d5e02
@ -10286,7 +10286,7 @@ namespace ts {
|
||||
|
||||
function checkStringLiteralExpression(node: LiteralExpression) {
|
||||
// TODO (drosen): Do we want to apply the same approach to no-sub template literals?
|
||||
|
||||
|
||||
let contextualType = getContextualType(node);
|
||||
if (contextualType) {
|
||||
if (contextualType.flags & TypeFlags.Union) {
|
||||
@ -10435,7 +10435,7 @@ namespace ts {
|
||||
case SyntaxKind.StringLiteral:
|
||||
return checkStringLiteralExpression(<LiteralExpression>node);
|
||||
case SyntaxKind.NoSubstitutionTemplateLiteral:
|
||||
return stringType
|
||||
return stringType;
|
||||
case SyntaxKind.RegularExpressionLiteral:
|
||||
return globalRegExpType;
|
||||
case SyntaxKind.ArrayLiteralExpression:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user