From 8c851b577aa3b73910f47cedc4b9263cf7e9ad73 Mon Sep 17 00:00:00 2001 From: daan flore Date: Sun, 2 Jan 2022 20:40:57 +0100 Subject: [PATCH] Adding correct types at run args command --- 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 c786bd72e..52ad9d861 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -4560,7 +4560,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 second argument numThreads must be filled in with a value. * @returns Returns the PID of a successfully started script, and 0 otherwise. */ - run(script: string, numThreads?: number, ...args: string[]): number; + run(script: string, numThreads?: number, ...args: Array): number; /** * Start another script on any server.