fix(compiler): allow tsc-wrapped to be compile with TypeScript 2.0 (#11086)

This commit is contained in:
Chuck Jazdzewski 2016-08-25 17:28:20 -07:00 committed by Victor Berchet
parent 811962b2bb
commit fc2fe00d16
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ export abstract class DelegatingHost implements ts.CompilerHost {
getDefaultLibLocation = () => this.delegate.getDefaultLibLocation();
writeFile: ts.WriteFileCallback = this.delegate.writeFile;
getCurrentDirectory = () => this.delegate.getCurrentDirectory();
getDirectories = (path: string): string[] =>
(this.delegate as any).getDirectories?(this.delegate as any).getDirectories(path): [];
getCanonicalFileName = (fileName: string) => this.delegate.getCanonicalFileName(fileName);
useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames();
getNewLine = () => this.delegate.getNewLine();