@@ -10,7 +10,13 @@ interface ActiveXObject {
10
10
}
11
11
declare var ActiveXObject : ActiveXObject ;
12
12
13
- interface ITextStreamBase {
13
+ interface ITextWriter {
14
+ Write ( s : string ) : void ;
15
+ WriteLine ( s : string ) : void ;
16
+ Close ( ) : void ;
17
+ }
18
+
19
+ interface TextStreamBase {
14
20
/**
15
21
* The column number of the current character position in an input stream.
16
22
*/
@@ -26,7 +32,7 @@ interface ITextStreamBase {
26
32
Close ( ) : void ;
27
33
}
28
34
29
- interface ITextWriter extends ITextStreamBase {
35
+ interface TextStreamWriter extends TextStreamBase {
30
36
/**
31
37
* Sends a string to an output stream.
32
38
*/
@@ -41,7 +47,7 @@ interface ITextWriter extends ITextStreamBase {
41
47
WriteLine ( s : string ) : void ;
42
48
}
43
49
44
- interface ITextReader extends ITextStreamBase {
50
+ interface TextStreamReader extends TextStreamBase {
45
51
/**
46
52
* Returns a specified number of characters from an input stream, beginning at the current pointer position.
47
53
* Does not return until the ENTER key is pressed.
@@ -89,12 +95,12 @@ declare var WScript: {
89
95
* Exposes the write-only error output stream for the current script.
90
96
* Can be accessed only while using CScript.exe.
91
97
*/
92
- StdErr : ITextWriter ;
98
+ StdErr : TextStreamWriter ;
93
99
/**
94
100
* Exposes the write-only output stream for the current script.
95
101
* Can be accessed only while using CScript.exe.
96
102
*/
97
- StdOut : ITextWriter ;
103
+ StdOut : TextStreamWriter ;
98
104
Arguments : { length : number ; Item ( n : number ) : string ; } ;
99
105
/**
100
106
* The full path of the currently running script.
@@ -132,7 +138,7 @@ declare var WScript: {
132
138
* Exposes the read-only input stream for the current script.
133
139
* Can be accessed only while using CScript.exe.
134
140
*/
135
- StdIn : ITextReader ;
141
+ StdIn : TextStreamReader ;
136
142
/**
137
143
* Windows Script Host version
138
144
*/
0 commit comments