Address CR feedback.

This commit is contained in:
Daniel Rosenwasser 2018-04-18 10:56:14 -07:00
parent 6953fa1732
commit 320cb40f12
2 changed files with 4 additions and 4 deletions

View File

@ -428,7 +428,7 @@ namespace ts {
newLine: string;
useCaseSensitiveFileNames: boolean;
write(s: string): void;
writeOutputIsTty?(): boolean;
writeOutputIsTTY?(): boolean;
readFile(path: string, encoding?: string): string | undefined;
getFileSize?(path: string): number;
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
@ -562,7 +562,7 @@ namespace ts {
write(s: string): void {
process.stdout.write(s);
},
writeOutputIsTty() {
writeOutputIsTTY() {
return process.stdout.isTTY;
},
readFile,

View File

@ -25,8 +25,8 @@ namespace ts {
}
function shouldBePretty(options: CompilerOptions) {
if ((typeof options.pretty === "undefined")) {
return !!sys.writeOutputIsTty && sys.writeOutputIsTty();
if (typeof options.pretty === "undefined") {
return !!sys.writeOutputIsTTY && sys.writeOutputIsTTY();
}
return options.pretty;
}