"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const diagnosticToString_1 = require("./diagnosticToString");
function typeCheckFiles(program) {
    return program
        .getSourceFiles()
        .reduce((xs, x) => xs.concat(program.getSemanticDiagnostics(x)), [])
        .map(x => diagnosticToString_1.diagnosticToString(x, program.getCurrentDirectory()))
        .join('\n');
}
exports.typeCheckFiles = typeCheckFiles;
//# sourceMappingURL=typeCheckFiles.js.map