File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ namespace ts {
6
6
newLine : string ;
7
7
useCaseSensitiveFileNames : boolean ;
8
8
write ( s : string ) : void ;
9
+ writesToTty ?( ) : boolean ;
9
10
readFile ( path : string , encoding ?: string ) : string ;
10
11
writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
11
12
watchFile ?( path : string , callback : ( path : string ) => void ) : FileWatcher ;
@@ -187,7 +188,8 @@ namespace ts {
187
188
function getNodeSystem ( ) : System {
188
189
var _fs = require ( "fs" ) ;
189
190
var _path = require ( "path" ) ;
190
- var _os = require ( 'os' ) ;
191
+ var _os = require ( "os" ) ;
192
+ var _tty = require ( "tty" ) ;
191
193
192
194
var platform : string = _os . platform ( ) ;
193
195
// win32\win64 are case insensitive platforms, MacOS (darwin) by default is also case insensitive
@@ -271,6 +273,7 @@ namespace ts {
271
273
// 1 is a standard descriptor for stdout
272
274
_fs . writeSync ( 1 , s ) ;
273
275
} ,
276
+ writesToTty : ( ) => _tty . isatty ( 1 ) ,
274
277
readFile,
275
278
writeFile,
276
279
watchFile : ( fileName , callback ) => {
You can’t perform that action at this time.
0 commit comments