We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e2b7d0 + af6d1eb commit 9141bfcCopy full SHA for 9141bfc
src/compiler/program.ts
@@ -87,6 +87,11 @@ module ts {
87
88
export function getPreEmitDiagnostics(program: Program): Diagnostic[] {
89
let diagnostics = program.getSyntacticDiagnostics().concat(program.getGlobalDiagnostics()).concat(program.getSemanticDiagnostics());
90
+
91
+ if (program.getCompilerOptions().declaration) {
92
+ diagnostics.concat(program.getDeclarationDiagnostics());
93
+ }
94
95
return sortAndDeduplicateDiagnostics(diagnostics);
96
}
97
0 commit comments