You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/scriptHost.d.ts
+111
Original file line number
Diff line number
Diff line change
@@ -11,45 +11,156 @@ interface ActiveXObject {
11
11
declarevarActiveXObject: ActiveXObject;
12
12
13
13
interfaceITextStreamBase{
14
+
/**
15
+
* The column number of the current character position in an input stream.
16
+
*/
14
17
Column: number;
18
+
/**
19
+
* The current line number in an input stream.
20
+
*/
15
21
Line: number;
22
+
/**
23
+
* Closes a text stream.
24
+
* It is not necessary to close standard streams; they close automatically when the process ends. If you close a standard stream, be aware that any other pointers to that standard stream become invalid.
25
+
*/
16
26
Close(): void;
17
27
}
18
28
19
29
interfaceITextWriterextendsITextStreamBase{
30
+
/**
31
+
* Sends a string to an output stream.
32
+
*/
20
33
Write(s: string): void;
34
+
/**
35
+
* Sends a specified number of blank lines (newline characters) to an output stream.
36
+
*/
21
37
WriteBlankLines(intLines: number): void;
38
+
/**
39
+
* Sends a string followed by a newline character to an output stream.
40
+
*/
22
41
WriteLine(s: string): void;
23
42
}
24
43
25
44
interfaceITextReaderextendsITextStreamBase{
45
+
/**
46
+
* Returns a specified number of characters from an input stream, beginning at the current pointer position.
47
+
* Does not return until the ENTER key is pressed.
48
+
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
49
+
*/
26
50
Read(characters: number): string;
51
+
/**
52
+
* Returns all characters from an input stream.
53
+
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
54
+
*/
27
55
ReadAll(): string;
56
+
/**
57
+
* Returns an entire line from an input stream.
58
+
* Although this method extracts the newline character, it does not add it to the returned string.
59
+
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
60
+
*/
28
61
ReadLine(): string;
62
+
/**
63
+
* Skips a specified number of characters when reading from an input text stream.
64
+
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
65
+
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
66
+
*/
29
67
Skip(characters: number): void;
68
+
/**
69
+
* Skips the next line when reading from an input text stream.
70
+
* Can only be used on a stream in reading mode, not writing or appending mode.
71
+
*/
30
72
SkipLine(): void;
73
+
/**
74
+
* Indicates whether the stream pointer position is at the end of a line.
75
+
*/
31
76
AtEndOfLine: boolean;
77
+
/**
78
+
* Indicates whether the stream pointer position is at the end of a stream.
79
+
*/
32
80
AtEndOfStream: boolean;
33
81
}
34
82
35
83
declarevarWScript: {
84
+
/**
85
+
* Outputs text to either a message box (under WScript.exe) or the command console window followed by a newline (under CScript.ext).
86
+
*/
36
87
Echo(s: any): void;
88
+
/**
89
+
* Exposes the write-only error output stream for the current script.
90
+
* Can be accessed only while using CScript.exe.
91
+
*/
37
92
StdErr: ITextWriter;
93
+
/**
94
+
* Exposes the write-only output stream for the current script.
0 commit comments