mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
Fix issue where getSemanticDiagnostics was returning undefined on a .d.ts file.
This commit is contained in:
@@ -2389,7 +2389,7 @@ module ts {
|
||||
|
||||
// If '-d' is enabled, check for emitter error. One example of emitter error is export class implements non-export interface
|
||||
let declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile);
|
||||
return semanticDiagnostics.concat(declarationDiagnostics);
|
||||
return concatenate(semanticDiagnostics, declarationDiagnostics);
|
||||
}
|
||||
|
||||
function getCompilerOptionsDiagnostics() {
|
||||
|
||||
Reference in New Issue
Block a user