From 111b73acf9bc3ff79b5c5185d75585c7c824aad7 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 26 Aug 2019 15:34:44 -0700 Subject: [PATCH] Remove unnecessary tslint-ignore (#33091) --- src/compiler/emitter.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 474d0e6793294..a47cfcb3c19e0 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -411,11 +411,7 @@ namespace ts { } ); if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) { - // Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule. - // But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow. - // Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the - // tslint directive can be all be removed. - const sourceFile = declarationTransform.transformed[0] as SourceFile; // tslint:disable-line + const sourceFile = declarationTransform.transformed[0]; exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit; } }