Skip to content

Commit 77afd94

Browse files
committed
More newlines
1 parent b7bcdde commit 77afd94

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/lib/scriptHost.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ interface TextStreamBase {
2121
* The column number of the current character position in an input stream.
2222
*/
2323
Column: number;
24+
2425
/**
2526
* The current line number in an input stream.
2627
*/
2728
Line: number;
29+
2830
/**
2931
* Closes a text stream.
3032
* It is not necessary to close standard streams; they close automatically when the process ends. If
@@ -38,10 +40,12 @@ interface TextStreamWriter extends TextStreamBase {
3840
* Sends a string to an output stream.
3941
*/
4042
Write(s: string): void;
43+
4144
/**
4245
* Sends a specified number of blank lines (newline characters) to an output stream.
4346
*/
4447
WriteBlankLines(intLines: number): void;
48+
4549
/**
4650
* Sends a string followed by a newline character to an output stream.
4751
*/
@@ -55,32 +59,38 @@ interface TextStreamReader extends TextStreamBase {
5559
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
5660
*/
5761
Read(characters: number): string;
62+
5863
/**
5964
* Returns all characters from an input stream.
6065
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
6166
*/
6267
ReadAll(): string;
68+
6369
/**
6470
* Returns an entire line from an input stream.
6571
* Although this method extracts the newline character, it does not add it to the returned string.
6672
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
6773
*/
6874
ReadLine(): string;
75+
6976
/**
7077
* Skips a specified number of characters when reading from an input text stream.
7178
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
7279
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
7380
*/
7481
Skip(characters: number): void;
82+
7583
/**
7684
* Skips the next line when reading from an input text stream.
7785
* Can only be used on a stream in reading mode, not writing or appending mode.
7886
*/
7987
SkipLine(): void;
88+
8089
/**
8190
* Indicates whether the stream pointer position is at the end of a line.
8291
*/
8392
AtEndOfLine: boolean;
93+
8494
/**
8595
* Indicates whether the stream pointer position is at the end of a stream.
8696
*/
@@ -93,72 +103,88 @@ declare var WScript: {
93103
* a newline (under CScript.ext).
94104
*/
95105
Echo(s: any): void;
106+
96107
/**
97108
* Exposes the write-only error output stream for the current script.
98109
* Can be accessed only while using CScript.exe.
99110
*/
100111
StdErr: TextStreamWriter;
112+
101113
/**
102114
* Exposes the write-only output stream for the current script.
103115
* Can be accessed only while using CScript.exe.
104116
*/
105117
StdOut: TextStreamWriter;
106118
Arguments: { length: number; Item(n: number): string; };
119+
107120
/**
108121
* The full path of the currently running script.
109122
*/
110123
ScriptFullName: string;
124+
111125
/**
112126
* Forces the script to stop immediately, with an optional exit code.
113127
*/
114128
Quit(exitCode?: number): number;
129+
115130
/**
116131
* The Windows Script Host build version number.
117132
*/
118133
BuildVersion: number;
134+
119135
/**
120136
* Fully qualified path of the host executable.
121137
*/
122138
FullName: string;
139+
123140
/**
124141
* Gets/sets the script mode - interactive(true) or batch(false).
125142
*/
126143
Interactive: boolean;
144+
127145
/**
128146
* The name of the host executable (WScript.exe or CScript.exe).
129147
*/
130148
Name: string;
149+
131150
/**
132151
* Path of the directory containing the host executable.
133152
*/
134153
Path: string;
154+
135155
/**
136156
* The filename of the currently running script.
137157
*/
138158
ScriptName: string;
159+
139160
/**
140161
* Exposes the read-only input stream for the current script.
141162
* Can be accessed only while using CScript.exe.
142163
*/
143164
StdIn: TextStreamReader;
165+
144166
/**
145167
* Windows Script Host version
146168
*/
147169
Version: string;
170+
148171
/**
149172
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
150173
*/
151174
ConnectObject(objEventSource: any, strPrefix: string): void;
175+
152176
/**
153177
* Creates a COM object.
154178
* @param strProgiID
155179
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
156180
*/
157181
CreateObject(strProgID: string, strPrefix?: string): any;
182+
158183
/**
159184
* Disconnects a COM object from its event sources.
160185
*/
161186
DisconnectObject(obj: any): void;
187+
162188
/**
163189
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
164190
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
@@ -167,6 +193,7 @@ declare var WScript: {
167193
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
168194
*/
169195
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
196+
170197
/**
171198
* Suspends script execution for a specified length of time, then continues execution.
172199
* @param intTime Interval (in milliseconds) to suspend script execution.

0 commit comments

Comments
 (0)