Skip to content

Commit f1cfefc

Browse files
committed
Comment correction
1 parent d442ecc commit f1cfefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17418,7 +17418,7 @@ namespace ts {
1741817418
}
1741917419

1742017420
function narrowTypeByTypeof(type: Type, typeOfExpr: TypeOfExpression, operator: SyntaxKind, literal: LiteralExpression, assumeTrue: boolean): Type {
17421-
// We have '==', '!=', '====', or !==' operator with 'typeof xxx' and string literal operands
17421+
// We have '==', '!=', '===', or !==' operator with 'typeof xxx' and string literal operands
1742217422
const target = getReferenceCandidate(typeOfExpr.expression);
1742317423
if (!isMatchingReference(reference, target)) {
1742417424
// For a reference of the form 'x.y', a 'typeof x === ...' type guard resets the

0 commit comments

Comments
 (0)