mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-02 14:48:32 -05:00
add missing conditional check
This commit is contained in:
@@ -1746,7 +1746,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
if (options.allowJs && options.declaration) {
|
||||
if (!options.noEmit && options.allowJs && options.declaration) {
|
||||
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", "declaration"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user