import * as ts from 'typescript' ; export const createConfigFileHost = ( ) : ts . ParseConfigFileHost => ( { useCaseSensitiveFileNames : false , readDirectory : ts . sys . readDirectory , fileExists : ts . sys . fileExists , readFile : ts . sys . readFile , getCurrentDirectory : ts . sys . getCurrentDirectory , onUnRecoverableConfigFileDiagnostic ( diagnostic ) { throw new Error ( ts . flattenDiagnosticMessageText ( diagnostic . messageText , '\n' ) ) ; } } ) ;