import { diagnosticToString } from './diagnosticToString';
export function typeCheckFiles(program) {
    return program
        .getSourceFiles()
        .reduce((xs, x) => xs.concat(program.getSemanticDiagnostics(x)), [])
        .map(x => diagnosticToString(x, program.getCurrentDirectory()))
        .join('\n');
}
//# sourceMappingURL=typeCheckFiles.js.map