From 3558179fff0aec92997f88ea016486ddc10c376c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 4 Sep 2019 13:42:11 -0700 Subject: [PATCH] Allow .d.ts with --isolatedModules Fixes #29490 --- src/compiler/program.ts | 4 ---- .../reference/isolatedModulesDeclaration.errors.txt | 6 ------ 2 files changed, 10 deletions(-) delete mode 100644 tests/baselines/reference/isolatedModulesDeclaration.errors.txt diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 76cccf79749d5..8f7e3492fb001 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2809,10 +2809,6 @@ namespace ts { } if (options.isolatedModules) { - if (getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, getEmitDeclarationOptionName(options), "isolatedModules"); - } - if (options.out) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "out", "isolatedModules"); } diff --git a/tests/baselines/reference/isolatedModulesDeclaration.errors.txt b/tests/baselines/reference/isolatedModulesDeclaration.errors.txt deleted file mode 100644 index 09a655c6da081..0000000000000 --- a/tests/baselines/reference/isolatedModulesDeclaration.errors.txt +++ /dev/null @@ -1,6 +0,0 @@ -error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'. - - -!!! error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'. -==== tests/cases/compiler/file1.ts (0 errors) ==== - export var x; \ No newline at end of file