From 069d76df25e3f3fe62f430059c58ef28f52fa6b9 Mon Sep 17 00:00:00 2001 From: Adraxas Date: Fri, 17 Dec 2021 18:40:00 -0800 Subject: [PATCH] Fix NS.exec signature --- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 8172e733a..68b1c94c2 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -4378,7 +4378,7 @@ export interface NS extends Singularity { * @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the third argument numThreads must be filled in with a value. * @returns Returns the PID of a successfully started script, and 0 otherwise. */ - exec(script: string, host: string, numThreads?: number, ...args: string[]): number; + exec(script: string, host: string, numThreads?: number, ...args: Array): number; /** * Terminate current script and start another in 10s.