mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
DOCUMENTATION: Make nuke and port opening functions return boolean (#1923)
This commit is contained in:
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -6543,8 +6543,9 @@ export interface NS {
|
||||
* ns.nuke("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
nuke(host: string): void;
|
||||
nuke(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Runs BruteSSH.exe on a server.
|
||||
@@ -6558,8 +6559,9 @@ export interface NS {
|
||||
* ns.brutessh("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
brutessh(host: string): void;
|
||||
brutessh(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Runs FTPCrack.exe on a server.
|
||||
@@ -6573,8 +6575,9 @@ export interface NS {
|
||||
* ns.ftpcrack("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
ftpcrack(host: string): void;
|
||||
ftpcrack(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Runs relaySMTP.exe on a server.
|
||||
@@ -6588,8 +6591,9 @@ export interface NS {
|
||||
* ns.relaysmtp("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
relaysmtp(host: string): void;
|
||||
relaysmtp(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Runs HTTPWorm.exe on a server.
|
||||
@@ -6603,8 +6607,9 @@ export interface NS {
|
||||
* ns.httpworm("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
httpworm(host: string): void;
|
||||
httpworm(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Runs SQLInject.exe on a server.
|
||||
@@ -6618,8 +6623,9 @@ export interface NS {
|
||||
* ns.sqlinject("foodnstuff");
|
||||
* ```
|
||||
* @param host - Hostname of the target server.
|
||||
* @returns True if the player runs the program successfully, and false otherwise.
|
||||
*/
|
||||
sqlinject(host: string): void;
|
||||
sqlinject(host: string): boolean;
|
||||
|
||||
/**
|
||||
* Start another script on the current server.
|
||||
|
||||
Reference in New Issue
Block a user