@@ -10,7 +10,13 @@ interface ActiveXObject {
1010}
1111declare var ActiveXObject : ActiveXObject ;
1212
13- interface ITextStreamBase {
13+ interface ITextWriter {
14+ Write ( s : string ) : void ;
15+ WriteLine ( s : string ) : void ;
16+ Close ( ) : void ;
17+ }
18+
19+ interface TextStreamBase {
1420 /**
1521 * The column number of the current character position in an input stream.
1622 */
@@ -26,7 +32,7 @@ interface ITextStreamBase {
2632 Close ( ) : void ;
2733}
2834
29- interface ITextWriter extends ITextStreamBase {
35+ interface TextStreamWriter extends TextStreamBase {
3036 /**
3137 * Sends a string to an output stream.
3238 */
@@ -41,7 +47,7 @@ interface ITextWriter extends ITextStreamBase {
4147 WriteLine ( s : string ) : void ;
4248}
4349
44- interface ITextReader extends ITextStreamBase {
50+ interface TextStreamReader extends TextStreamBase {
4551 /**
4652 * Returns a specified number of characters from an input stream, beginning at the current pointer position.
4753 * Does not return until the ENTER key is pressed.
@@ -89,12 +95,12 @@ declare var WScript: {
8995 * Exposes the write-only error output stream for the current script.
9096 * Can be accessed only while using CScript.exe.
9197 */
92- StdErr : ITextWriter ;
98+ StdErr : TextStreamWriter ;
9399 /**
94100 * Exposes the write-only output stream for the current script.
95101 * Can be accessed only while using CScript.exe.
96102 */
97- StdOut : ITextWriter ;
103+ StdOut : TextStreamWriter ;
98104 Arguments : { length : number ; Item ( n : number ) : string ; } ;
99105 /**
100106 * The full path of the currently running script.
@@ -132,7 +138,7 @@ declare var WScript: {
132138 * Exposes the read-only input stream for the current script.
133139 * Can be accessed only while using CScript.exe.
134140 */
135- StdIn : ITextReader ;
141+ StdIn : TextStreamReader ;
136142 /**
137143 * Windows Script Host version
138144 */
0 commit comments