From 0d006d0a64f04a2a35c614f4c1321bacfc042f6a Mon Sep 17 00:00:00 2001 From: daan flore Date: Mon, 10 Jan 2022 22:49:42 +0100 Subject: [PATCH] Adding correct type to getPortHandle function --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 7e1df5207..ea97083a9 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1901,7 +1901,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { const iport = helper.getValidPort("clearPort", port); return iport.clear(); }, - getPortHandle: function (port: any): any { + getPortHandle: function (port: any): IPort { updateDynamicRam("getPortHandle", getRamCost(Player, "getPortHandle")); const iport = helper.getValidPort("getPortHandle", port); return iport;