mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 20:51:43 -06:00
Address CR feedback.
This commit is contained in:
parent
6953fa1732
commit
320cb40f12
@ -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,
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user