Skip to content

Commit 5b5af23

Browse files
committed
use getEmitDeclarations helper
1 parent c510df1 commit 5b5af23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ namespace ts {
26092609
}
26102610
}
26112611

2612-
if (!options.noEmit && options.allowJs && (options.declaration || options.composite)) {
2612+
if (!options.noEmit && options.allowJs && getEmitDeclarations(options)) {
26132613
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", options.declaration ? "declaration" : "composite");
26142614
}
26152615

0 commit comments

Comments
 (0)