use getEmitDeclarations helper
This commit is contained in:
parent
c510df1a53
commit
5b5af23b41
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue