getServer of hacknet doesn't return undefined

This commit is contained in:
Olivier Gagnon
2021-12-12 13:47:05 -05:00
parent dea8abef1d
commit 11ba8c91be
4 changed files with 23 additions and 15 deletions

View File

@@ -4842,13 +4842,12 @@ export interface NS extends Singularity {
deleteServer(host: string): boolean;
/**
* Returns an array with either the hostnames or IPs of all of the servers you have purchased.
* Returns an array with the hostnames of all of the servers you have purchased.
*
* @remarks 2.25 GB
* @param hostnameMode - Optional. Defaults to true. Returns hostnames if true, and IPs if false.
* @returns Returns an array with either the hostnames or IPs of all of the servers you have purchased.
* @returns Returns an array with the hostnames of all of the servers you have purchased.
*/
getPurchasedServers(hostnameMode?: boolean): string[];
getPurchasedServers(): string[];
/**
* Returns the maximum number of servers you can purchase.