Add Function Call signatures to ns.kill so typescript is able to call

ns.kill(pid)
previously it will fail to compile due to not providing a host argument
This commit is contained in:
TheMas3212 2021-12-31 10:58:56 +11:00
parent b578e09986
commit 31ed5d8f64
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

@ -4680,7 +4680,9 @@ export interface NS extends Singularity {
* @param args - Arguments to identify which script to kill. * @param args - Arguments to identify which script to kill.
* @returns True if the script is successfully killed, and false otherwise. * @returns True if the script is successfully killed, and false otherwise.
*/ */
kill(script: string | number, host: string, ...args: string[]): boolean; kill(script: number): boolean;
kill(script: string, host: string, ...args: string[]): boolean;
kill(script: string | number, host: string, ...args: string[]): boolean;
/** /**
* Terminate all scripts on a server. * Terminate all scripts on a server.