mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
This reverts commit 92b8b58588.
Accidental merge on my part - the code is in decent shape, but isn't meant to go in for 3.0.
This commit is contained in:
15
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
15
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -8991,21 +8991,6 @@ export interface NS {
|
||||
*/
|
||||
dynamicImport(path: string): Promise<any>;
|
||||
|
||||
/**
|
||||
* Retrieves the NetscriptPort handle used to get input piped to the script.
|
||||
* Examples:
|
||||
*
|
||||
* If a script was run with data piped into it via the terminal:
|
||||
* `echo input1 | run myScript.js`
|
||||
*
|
||||
* then `ns.getStdin().read()` inside `myScript.js` would return `"input1"`.
|
||||
*
|
||||
* If more data is added later (for example, if one script's terminal is piped to another script),
|
||||
* then the script can read that data from `ns.getStdin()` as well.
|
||||
* `await ns.getStdin().nextPortWrite()` can be used to wait until new data is available to read.
|
||||
*/
|
||||
getStdin(): NetscriptPort | null;
|
||||
|
||||
enums: NSEnums;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user