Merge pull request #32911 from jack-williams/jw-equals

Comment correction
This commit is contained in:
Orta
2019-08-15 07:04:50 -07:00
committed by GitHub

View File

@@ -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