mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-18 10:53:43 +01:00
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:
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4680,8 +4680,10 @@ 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.
|
||||||
* @remarks
|
* @remarks
|
||||||
|
Reference in New Issue
Block a user