fix ns.run args type definition

This commit is contained in:
Andriy Mykhaylyk
2022-01-03 16:10:22 +01:00
parent d0214c1fed
commit 38923af436
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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<string | number | boolean>): number;
/**
* Start another script on any server.