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