mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
fix any in AllServers
This commit is contained in:
parent
691770fa9b
commit
7195c1b540
@ -163,7 +163,7 @@ export function initForeignServers(homeComputer: Server): void {
|
||||
server2.serversOnNetwork.push(server1.hostname);
|
||||
};
|
||||
|
||||
const getRandomArrayItem = (arr: any[]): any => arr[Math.floor(Math.random() * arr.length)];
|
||||
const getRandomArrayItem = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)];
|
||||
|
||||
const linkNetworkLayers = (network1: Server[], selectServer: () => Server): void => {
|
||||
for (const server of network1) {
|
||||
|
Loading…
Reference in New Issue
Block a user