From f1cfefc3db376769c5b5c78017e4282630de0b20 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Thu, 15 Aug 2019 11:06:56 +0100 Subject: [PATCH] Comment correction --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 161ac54661d..1aa95546d3d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17418,7 +17418,7 @@ namespace ts { } function narrowTypeByTypeof(type: Type, typeOfExpr: TypeOfExpression, operator: SyntaxKind, literal: LiteralExpression, assumeTrue: boolean): Type { - // We have '==', '!=', '====', or !==' operator with 'typeof xxx' and string literal operands + // We have '==', '!=', '===', or !==' operator with 'typeof xxx' and string literal operands const target = getReferenceCandidate(typeOfExpr.expression); if (!isMatchingReference(reference, target)) { // For a reference of the form 'x.y', a 'typeof x === ...' type guard resets the