diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 056b2a4fc9a..f993eadd3e6 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1015,7 +1015,7 @@ namespace ts { let declarationDiagnostics: Diagnostic[] = []; if (options.noEmit) { - return { diagnostics: declarationDiagnostics, sourceMaps: undefined, emittedFiles: [], emitSkipped: true }; + return { diagnostics: declarationDiagnostics, sourceMaps: undefined, emittedFiles: undefined, emitSkipped: true }; } // If the noEmitOnError flag is set, then check if we have any errors so far. If so, @@ -1035,7 +1035,7 @@ namespace ts { return { diagnostics: concatenate(diagnostics, declarationDiagnostics), sourceMaps: undefined, - emittedFiles: [], + emittedFiles: undefined, emitSkipped: true }; }