mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
use getEmitDeclarations helper
This commit is contained in:
@@ -2609,7 +2609,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
if (!options.noEmit && options.allowJs && (options.declaration || options.composite)) {
|
||||
if (!options.noEmit && options.allowJs && getEmitDeclarations(options)) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", options.declaration ? "declaration" : "composite");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user